Attach job ID when unpickling fails in .dequeue().

This makes the behaviour consistent with .dequeue_any().
main
Vincent Driessen 12 years ago
parent 83525c42c7
commit 4688498e2d

@ -223,6 +223,7 @@ class Queue(object):
except UnpickleError as e:
# Attach queue information on the exception for improved error
# reporting
e.job_id = job_id
e.queue = self
raise e
return job

Loading…
Cancel
Save