Closed hspazio closed 5 years ago
gh-20
https://crontab.guru/#*_*_31_2_* is valid, crond probably never schedules (and doesn't fail with a RuntimeError).
Thanks!
Thank you @jmettraux! much appreciated your quick turnaround! :)
You're welcome :-)
Issue description
This is again a known issue reporting as per error message. Although the input date is incorrect (e.g. Feb 31st) the
:parse
method returns a valid object and the loop:next_time
reaches the max number of iterations.How to reproduce
Same issue occurs with all inputs that have month within 1-12 and day within 1-31 but are not valid dates:
Suggestions
parse
method returnnil
directly when invalid combination of month-day is detected?