Fixed exceptions for name_callback
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ def name_callback(slack, msg, match):
|
|||||||
result = "The bot thinks your name is {}".format(brother["name"])
|
result = "The bot thinks your name is {}".format(brother["name"])
|
||||||
else:
|
else:
|
||||||
result = "The bot couldn't find a name for scroll {}".format(scroll)
|
result = "The bot couldn't find a name for scroll {}".format(scroll)
|
||||||
except ValueError:
|
except (KeyError, ValueError):
|
||||||
result = NON_REG_MSG
|
result = NON_REG_MSG
|
||||||
|
|
||||||
# Respond
|
# Respond
|
||||||
|
|||||||
Reference in New Issue
Block a user