3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 14:49:28 +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: 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 = [] result = []
prefixmodes = prefixmodes or self.prefixmodes prefixmodes = prefixmodes or self.prefixmodes