Selaa lähdekoodia

Fix exc_type in handle_failure

Rinat Shigapov 13 vuotta sitten
vanhempi
commit
f2856773fd
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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))