Auto merge of #58477 - rust-lang:fix-publish-toolstate-syntax-error, r=oli-obk

Fix the syntax error in publish_toolstate.py
This commit is contained in:
bors 2019-02-17 04:57:50 +00:00
commit 6982acd867

View File

@ -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: