Pass connection explicitly to Job.fetch

This commit is contained in:
Jonas 2012-06-08 15:20:05 +02:00
parent 074d42fe54
commit 415a159ac3
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class Queue(object):
"""Returns a list of all (valid) jobs in the queue.""" """Returns a list of all (valid) jobs in the queue."""
def safe_fetch(job_id): def safe_fetch(job_id):
try: try:
job = Job.fetch(job_id) job = Job.fetch(job_id, connection=self.connection)
except NoSuchJobError: except NoSuchJobError:
return None return None
except UnpickleError: except UnpickleError: