3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 13:09:23 +01:00

classes: raise KeyError, not return KeyError...

This commit is contained in:
James Lu 2016-03-19 18:00:44 -07:00
parent c86a02e044
commit f5f0df52ce

View File

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