Skip to content

Commit 6982acd

Browse files
committed
Auto merge of #58477 - rust-lang:fix-publish-toolstate-syntax-error, r=oli-obk
Fix the syntax error in publish_toolstate.py
2 parents eac0908 + d21026e commit 6982acd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tools/publish_toolstate.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ def update_latest(
140140
tool, MAINTAINERS.get(tool),
141141
relevant_pr_number, relevant_pr_user, pr_reviewer,
142142
)
143-
except IOError as (errno, strerror):
143+
except IOError as e:
144144
# network errors will simply end up not creating an issue, but that's better
145145
# than failing the entire build job
146-
print "I/O error({0}): {1}".format(errno, strerror)
146+
print("I/O error: {0}".format(e))
147147
except:
148-
print "Unexpected error:", sys.exc_info()[0]
148+
print("Unexpected error: {0}".format(sys.exc_info()[0]))
149149
raise
150150

151151
if changed:

0 commit comments

Comments
 (0)