Fixed exceptions for name_callback

This commit is contained in:
Jacob Henry 2018-09-10 21:28:07 -04:00
parent daf4753907
commit c3011640f8
1 changed files with 1 additions and 1 deletions

View File

@ -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