Browse Source

schedules.crontab: "Invalid crontab pattern. Valid range is 0-24. '24' was found.", need to show ``max_ - 1``.

Ask Solem 14 years ago
parent
commit
cdef3d20f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      celery/schedules.py

+ 1 - 1
celery/schedules.py

@@ -209,7 +209,7 @@ class crontab(schedule):
             if number >= max_:
                 raise ValueError(
                         "Invalid crontab pattern. Valid "
-                        "range is 0-%d. '%d' was found." % (max_, number))
+                        "range is 0-%d. '%d' was found." % (max_ - 1, number))
 
         return result