Skip to content

Commit

Permalink
Fix the syntax error in publish_toolstate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed Feb 15, 2019
1 parent f47ec2a commit d21026e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tools/publish_toolstate.py
Expand Up @@ -140,12 +140,12 @@ def update_latest(
tool, MAINTAINERS.get(tool),
relevant_pr_number, relevant_pr_user, pr_reviewer,
)
except IOError as (errno, strerror):
except IOError as e:
# 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)
print("I/O error: {0}".format(e))
except:
print "Unexpected error:", sys.exc_info()[0]
print("Unexpected error: {0}".format(sys.exc_info()[0]))
raise

if changed:
Expand Down

0 comments on commit d21026e

Please sign in to comment.