Explorar o código

Merge pull request #1654 from nadad/master

Fixed a little syntax error in string formatting in beat.py
Ask Solem Hoel %!s(int64=11) %!d(string=hai) anos
pai
achega
36393ade1f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()