Skip to content

Commit

Permalink
Fixed MongoDB job store using id() instead of job id in JobLookupError
Browse files Browse the repository at this point in the history
Fixes #135
  • Loading branch information
txomon authored and agronholm committed Apr 29, 2016
1 parent 72769ab commit a07a71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apscheduler/jobstores/mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def update_job(self, job):
}
result = self.collection.update({'_id': job.id}, {'$set': changes})
if result and result['n'] == 0:
raise JobLookupError(id)
raise JobLookupError(job.id)

def remove_job(self, job_id):
result = self.collection.remove(job_id)
Expand Down

0 comments on commit a07a71b

Please sign in to comment.