diff --git a/rq/worker.py b/rq/worker.py index 5de56b5..6a32f8a 100644 --- a/rq/worker.py +++ b/rq/worker.py @@ -310,7 +310,7 @@ class Worker(object): except StopRequested: break except UnpickleError as e: - job = Job.safe_fetch(e.job_id, self.connection) + job = Job.safe_fetch(e.job_id, connection=self.connection) self.handle_exception(job, *sys.exc_info()) continue