Fixed exceptions for name_callback
This commit is contained in:
parent
daf4753907
commit
c3011640f8
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue