Skip to content

Commit

Permalink
got rid off exception raise for a log
Browse files Browse the repository at this point in the history
  • Loading branch information
hkethi002 committed May 22, 2017
1 parent 7539e32 commit c799e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ def upgrade_to_26_closure(job):
if tag == gear_name:
gear_name_tag_count = gear_name_tag_count + 1
if gear_name_tag_count > 1:
raise Exception("Job has multiple gear name tags")
logging.info("job "+ job + " has multiple gear name tags")

# Update doc
result = config.db.jobs.update_one({'_id': job['_id']}, {'$push': {'tags': gear_name }})
Expand Down

0 comments on commit c799e55

Please sign in to comment.