From f5f0df52ce0aaac3df5a21f117fe9f6bca71d801 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 19 Mar 2016 18:00:44 -0700 Subject: [PATCH] classes: raise KeyError, not return KeyError... --- classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes.py b/classes.py index cc21bd9..8db6287 100644 --- a/classes.py +++ b/classes.py @@ -644,7 +644,7 @@ class IrcChannel(): """ if uid not in self.users: - return KeyError("User %s does not exist or is not in the channel" % uid) + raise KeyError("User %s does not exist or is not in the channel" % uid) result = [] prefixmodes = prefixmodes or self.prefixmodes