Fix the syntax error in publish_toolstate.py

This commit is contained in:
kennytm 2019-02-15 14:26:27 +08:00 committed by GitHub
parent f47ec2ad5b
commit d21026e3e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: