Fix KeyboardInterrupt handler in terminal.py.

The exception name was wrong before.
This commit is contained in:
Steve Howell 2017-12-11 11:07:28 -06:00
parent 3c66894aff
commit fe3b995590

View file

@ -69,7 +69,7 @@ def main():
message=message, message=message,
bot_handler=bot_handler, bot_handler=bot_handler,
) )
except KeyboardException: except KeyboardInterrupt:
print("\n\nOk, if you're happy with your terminal-based testing, try it out with a Zulip server.", print("\n\nOk, if you're happy with your terminal-based testing, try it out with a Zulip server.",
"\nYou can refer to https://zulipchat.com/api/running-bots#running-a-bot.") "\nYou can refer to https://zulipchat.com/api/running-bots#running-a-bot.")
sys.exit(1) sys.exit(1)