taichino / croniter

croniter is a python module to provide iteration for datetime object.
http://github.com/taichino/croniter
387 stars 105 forks source link

KeyError when using '0 4/6 * * *' #57

Closed praveev closed 7 years ago

praveev commented 8 years ago

This is a valid cron expression. http://crontab.guru/#0_4/6_*_*_*

>>> iter = croniter('0 4/6 * * *', base)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/croniter/croniter.py", line 113, in __init__
    t = self.ALPHACONV[i][t.lower()]
KeyError: '4/6'