taichino / croniter

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

Cannot specify weekdays #59

Closed Tjorriemorrie closed 8 years ago

Tjorriemorrie commented 8 years ago

I wish to use: '0 0 * * 1-5'

but it gives the error:

  File "/usr/local/lib/python2.7/dist-packages/croniter/croniter.py", line 69, in __init__
    raise ValueError(self.bad_length)
ValueError: Exactly 5 or 6 columns has to be specified for iteratorexpression.
>>> '0 0 * * 1-5'.split()
['0', '0', '*', '*', '1-5']

I don't understand what's wrong here.

Tjorriemorrie commented 8 years ago

I had another cron with 4 parameters.