From c3011640f876f8638af6b858061f325b4bae3cb0 Mon Sep 17 00:00:00 2001 From: Jacob Henry Date: Mon, 10 Sep 2018 21:28:07 -0400 Subject: [PATCH] Fixed exceptions for name_callback --- identifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/identifier.py b/identifier.py index d73f822..77f0248 100644 --- a/identifier.py +++ b/identifier.py @@ -82,7 +82,7 @@ def name_callback(slack, msg, match): result = "The bot thinks your name is {}".format(brother["name"]) else: result = "The bot couldn't find a name for scroll {}".format(scroll) - except ValueError: + except (KeyError, ValueError): result = NON_REG_MSG # Respond