From 9d5cac29419221b235516e1487651897b8baeed3 Mon Sep 17 00:00:00 2001 From: Jacob Henry Date: Tue, 20 Nov 2018 17:03:49 -0500 Subject: [PATCH] Fixed exception handling with brother database --- identifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/identifier.py b/identifier.py index 9d5d779..a20dda0 100644 --- a/identifier.py +++ b/identifier.py @@ -117,7 +117,7 @@ async def lookup_slackid_brother(slack_id: str) -> scroll_util.Brother: try: scroll = db[slack_id] return scroll_util.find_by_scroll(scroll) - except ValueError: + except (KeyError, ValueError): raise scroll_util.BrotherNotFound("Slack id {} not tied to brother".format(slack_id))