Skip to content

Commit

Permalink
handle error if no job (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmillikin authored Feb 25, 2022
1 parent b5cd61c commit 6630df7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/workers/work.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def _update_job_status(key, value):

if job is None:
print('error: tried to update job status, but could not find job')
return

job.meta[key] = value
job.save_meta()

0 comments on commit 6630df7

Please sign in to comment.