Преглед на файлове

celery.managers: s/Exceptions/Exception/

Jerzy Kozera преди 15 години
родител
ревизия
42e154dff6
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      celery/managers.py

+ 1 - 1
celery/managers.py

@@ -109,7 +109,7 @@ class TaskManager(models.Manager):
                 task.result = result
                 task.result = result
                 task.traceback = traceback
                 task.traceback = traceback
                 task.save()
                 task.save()
-        except Exceptions, exc:
+        except Exception, exc:
             # depending on the database backend we can get various exceptions.
             # depending on the database backend we can get various exceptions.
             # for excample, psycopg2 raises an exception if some operation
             # for excample, psycopg2 raises an exception if some operation
             # breaks transaction, and saving task result won't be possible
             # breaks transaction, and saving task result won't be possible