From fe3b995590fafa82b5e8c80a781f5f8de7e3bfc2 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Mon, 11 Dec 2017 11:07:28 -0600 Subject: [PATCH] Fix KeyboardInterrupt handler in terminal.py. The exception name was wrong before. --- zulip_bots/zulip_bots/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip_bots/zulip_bots/terminal.py b/zulip_bots/zulip_bots/terminal.py index 05925e7..5043097 100644 --- a/zulip_bots/zulip_bots/terminal.py +++ b/zulip_bots/zulip_bots/terminal.py @@ -69,7 +69,7 @@ def main(): message=message, 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.", "\nYou can refer to https://zulipchat.com/api/running-bots#running-a-bot.") sys.exit(1)