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