-
Notifications
You must be signed in to change notification settings - Fork 104
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
func is_valid crashed when checking '*/0 * * * *' cron string #114
Comments
Uhm, i need to investigate but your cron line seems invalid for me, so at least its normal that it wont work. */0 mean each 0 minutes, division by zero ! |
As a programmer, I totally understand this cron line is invalid, and stupid! But we cannot control that somebody attempts to do this to let their jobs run continually. Thanks for working on this! |
Ok, no problemo, as i said i ll look how to make croniter not crash. |
Fabulous! Thanks. |
Better later than never ^^ :). |
Hi guys.
Accidentally found an issue when using
is_valid
func with parameter '*/0 * * * *', the expect return is False, while somehow the program crashed.I actually located where the problem is, it's in croniter.py Line 499.
m.group(4) or 1
failed to return1
whenm.group(4) == '0'
, which then further caused variablestep
became 0, then it crashed.Could you please fix this?
The text was updated successfully, but these errors were encountered: