Przeglądaj źródła

Fix exc_type in handle_failure

Rinat Shigapov 13 lat temu
rodzic
commit
f2856773fd
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      celery/task/trace.py

+ 1 - 1
celery/task/trace.py

@@ -110,7 +110,7 @@ class TraceInfo(object):
     def handle_failure(self, task, store_errors=True):
         """Handle exception."""
         req = task.request
-        _, type_, tb = sys.exc_info()
+        type_, _, tb = sys.exc_info()
         try:
             exc = self.retval
             einfo = ExceptionInfo((type_, get_pickleable_exception(exc), tb))