Skip to content
Permalink
Browse files

Permit issue posting to have network failures

  • Loading branch information...
oli-obk committed Feb 12, 2019
1 parent 488f16a commit 6ed4401609817e18a0ff781529e35b2a209ff0da
Showing with 12 additions and 4 deletions.
  1. +12 −4 src/tools/publish_toolstate.py
@@ -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

0 comments on commit 6ed4401

Please sign in to comment.
You can’t perform that action at this time.