Skip to content

Commit

Permalink
Fix exc_type in handle_failure
Browse files Browse the repository at this point in the history
  • Loading branch information
DXist authored and ask committed Jul 20, 2012
1 parent e379786 commit f285677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion celery/task/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def handle_retry(self, task, store_errors=True):
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))
Expand Down

0 comments on commit f285677

Please sign in to comment.