Skip to content

Commit

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

Fix the syntax error in publish_toolstate.py
  • Loading branch information
kennytm committed Feb 16, 2019
2 parents 9a2437c + d21026e commit 778f343
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 778f343

Please sign in to comment.