Selaa lähdekoodia

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

Ask Solem 14 vuotta sitten
vanhempi
commit
e7e463b423
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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