Explorar o código

Merge pull request #2285 from silverfix/patch-1

Fixed bug on 'raise exc'
Ask Solem Hoel %!s(int64=10) %!d(string=hai) anos
pai
achega
78d39b6156
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/app/task.py

+ 1 - 1
celery/app/task.py

@@ -569,7 +569,7 @@ class Task(object):
                 # first try to reraise the original exception
                 maybe_reraise()
                 # or if not in an except block then raise the custom exc.
-                raise exc()
+                raise exc
             raise self.MaxRetriesExceededError(
                 "Can't retry {0}[{1}] args:{2} kwargs:{3}".format(
                     self.name, request.id, S.args, S.kwargs))