bots: Fix bare except clause.
This commit is contained in:
parent
39d7db40b3
commit
6302f0d645
|
@ -77,15 +77,16 @@ while backoff.keep_going():
|
||||||
print("Starting zephyr mirroring bot")
|
print("Starting zephyr mirroring bot")
|
||||||
try:
|
try:
|
||||||
subprocess.call(args)
|
subprocess.call(args)
|
||||||
except:
|
except Exception:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
backoff.fail()
|
backoff.fail()
|
||||||
|
|
||||||
print("")
|
|
||||||
print("")
|
error_message = """
|
||||||
print("ERROR: The Zephyr mirroring bot is unable to continue mirroring Zephyrs.")
|
ERROR: The Zephyr mirroring bot is unable to continue mirroring Zephyrs.
|
||||||
print("This is often caused by failing to maintain unexpired Kerberos tickets")
|
This is often caused by failing to maintain unexpired Kerberos tickets
|
||||||
print("or AFS tokens. See https://zulip.com/zephyr for documentation on how to")
|
or AFS tokens. See https://zulip.com/zephyr for documentation on how to
|
||||||
print("maintain unexpired Kerberos tickets and AFS tokens.")
|
maintain unexpired Kerberos tickets and AFS tokens.
|
||||||
print("")
|
"""
|
||||||
|
print(error_message)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in a new issue