Merge pull request #83 from jonasvp/master

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

Thanks @jonasvp!
This commit is contained in:
Vincent Driessen 2012-06-08 06:24:36 -07:00
commit 5c11ea6296
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."""
def safe_fetch(job_id):
try:
job = Job.fetch(job_id)
job = Job.fetch(job_id, connection=self.connection)
except NoSuchJobError:
return None
except UnpickleError: