Преглед изворни кода

Merge pull request #1654 from nadad/master

Fixed a little syntax error in string formatting in beat.py
Ask Solem Hoel пре 11 година
родитељ
комит
36393ade1f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      celery/beat.py

+ 1 - 1
celery/beat.py

@@ -244,7 +244,7 @@ class Scheduler(object):
         except Exception as exc:
             reraise(SchedulingError, SchedulingError(
                 "Couldn't apply scheduled task {0.name}: {exc}".format(
-                    entry, exc)), sys.exc_info()[2])
+                    entry, exc=exc)), sys.exc_info()[2])
         finally:
             if self.should_sync():
                 self._do_sync()