From 4688498e2d9bc07a5e3d3fac4224eac234d8ecf4 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Mon, 11 Feb 2013 15:06:24 +0100 Subject: [PATCH] Attach job ID when unpickling fails in .dequeue(). This makes the behaviour consistent with .dequeue_any(). --- rq/queue.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rq/queue.py b/rq/queue.py index 0e4c11a..e84d0a5 100644 --- a/rq/queue.py +++ b/rq/queue.py @@ -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