From 1299a815f544a72540376e70d85a07d4ad7026b9 Mon Sep 17 00:00:00 2001 From: Dolph Mathews Date: Mon, 12 Oct 2015 19:26:01 +0000 Subject: [PATCH] Explicitly catch Exception This allows non-Exceptions like KeyboardInterrupt, etc, to be ignored and raised naturally. Change-Id: I58b3d46d90d7a98891d0afb481da4df60dd9ce62 --- statusbot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statusbot/bot.py b/statusbot/bot.py index fc73b6b..9ee7c06 100644 --- a/statusbot/bot.py +++ b/statusbot/bot.py @@ -310,7 +310,7 @@ class StatusBot(irc.bot.SingleServerIRCBot): return try: self.handle_status_command(e.target, nick, msg) - except: + except Exception: self.log.exception("Exception handling command %s" % msg) def handle_success_command(self, channel, nick, msg):