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:
parent
c86a02e044
commit
f5f0df52ce
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user