Skip to content

Commit

Permalink
Auto merge of #58477 - rust-lang:fix-publish-toolstate-syntax-error, …
Browse files Browse the repository at this point in the history
…r=oli-obk

Fix the syntax error in publish_toolstate.py
  • Loading branch information
bors committed Feb 17, 2019
2 parents eac0908 + d21026e commit 6982acd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tools/publish_toolstate.py
Original file line number Diff line number Diff line change
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 6982acd

Please sign in to comment.