Merge pull request #83 from jonasvp/master

safe_fetch() didn't pass connection to Job.fetch()

Thanks @jonasvp!
main
Vincent Driessen 13 years ago
commit 5c11ea6296

@ -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:

Loading…
Cancel
Save