Skip to content

Commit

Permalink
Permit issue posting to have network failures
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Feb 12, 2019
1 parent 488f16a commit 6ed4401
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/tools/publish_toolstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,18 @@ def update_latest(
build_failed = True

if build_failed:
issue(
tool, MAINTAINERS.get(tool),
relevant_pr_number, relevant_pr_user, pr_reviewer,
)
try:
issue(
tool, MAINTAINERS.get(tool),
relevant_pr_number, relevant_pr_user, pr_reviewer,
)
except IOError as (errno, strerror):
# network errors will simply end up not creating an issue, but that's better
# than failing the entire build job
print "I/O error({0}): {1}".format(errno, strerror)
except:
print "Unexpected error:", sys.exc_info()[0]
raise

if changed:
status['commit'] = current_commit
Expand Down

0 comments on commit 6ed4401

Please sign in to comment.