Procházet zdrojové kódy

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

Ask Solem před 14 roky
rodič
revize
e7e463b423
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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