diff options
| author | bors <bors@rust-lang.org> | 2019-02-17 04:57:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-02-17 04:57:50 +0000 |
| commit | 6982acd8673cbf511e64c6790964e94552400f40 (patch) | |
| tree | eb08dc3e75075678137c0f3f6803b88b8d1c575c | |
| parent | eac09088e1a8fc8a293028764e4e84da29469205 (diff) | |
| parent | d21026e3e0d47ecf42c380a25166cb8cd7d7bd63 (diff) | |
Auto merge of #58477 - rust-lang:fix-publish-toolstate-syntax-error, r=oli-obk
Fix the syntax error in publish_toolstate.py
| -rwxr-xr-x | src/tools/publish_toolstate.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/publish_toolstate.py b/src/tools/publish_toolstate.py index 24d6fd5b19b..75b1db8045d 100755 --- a/src/tools/publish_toolstate.py +++ b/src/tools/publish_toolstate.py @@ -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: |
