Skip to content

Commit

Permalink
MaybeEncodingError was not wrapped in ExceptionInfo. Thanks to mtirsel.
Browse files Browse the repository at this point in the history
Closes celery#524
  • Loading branch information
ask committed Nov 7, 2011
1 parent 71af08a commit c5244e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion celery/concurrency/processes/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,10 @@ def poll(timeout): # noqa
try:
put((READY, (job, i, result)))
except Exception, exc:
_, _, tb = sys.exc_info()
wrapped = MaybeEncodingError(exc, result[1])
put((READY, (job, i, (False, wrapped))))
einfo = ExceptionInfo((MaybeEncodingError, wrapped, tb))
put((READY, (job, i, (False, einfo))))

completed += 1
debug('worker exiting after %d tasks' % completed)
Expand Down

0 comments on commit c5244e7

Please sign in to comment.