Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeze when count = 0 is passed #11

Open
siolag161 opened this issue Mar 29, 2015 · 1 comment
Open

Freeze when count = 0 is passed #11

siolag161 opened this issue Mar 29, 2015 · 1 comment

Comments

@siolag161
Copy link
Contributor

When we set count=0 in add_occurrences it freezes!

Apparently the issue is with python-dateutils, like for example,

list(rrule.rrule(rrule.DAILY, dtstart=datetime(2010,1,1,1), count=0))

will likely cause the problem ( generate an infinite list of occurrences)

What do you think we should do?

@dakrauth
Copy link
Owner

dakrauth commented Apr 5, 2015

I've added a simple tweak to check for false-y values for count and until in the rrule params

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants