Use kwarg to specify connection.

main
Vincent Driessen 11 years ago
parent 1792a194bd
commit 9abbfc4dfb

@ -310,7 +310,7 @@ class Worker(object):
except StopRequested: except StopRequested:
break break
except UnpickleError as e: 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()) self.handle_exception(job, *sys.exc_info())
continue continue

Loading…
Cancel
Save