mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 13:42:36 +01:00
Give a proper error message for possibly uncaught exception: bug #839653.
This commit is contained in:
parent
3b6b478aac
commit
754978850c
@ -298,7 +298,12 @@ class Relay(callbacks.Privmsg, plugins.Configurable):
|
||||
voices = []
|
||||
usersS = []
|
||||
if abbreviation != self.abbreviations[realIrc]:
|
||||
Channel = otherIrc.state.channels[channel]
|
||||
try:
|
||||
Channel = otherIrc.state.channels[channel]
|
||||
except KeyError:
|
||||
s = 'Somehow I\'m not in %s on %s.'%(channel,abbreviation))
|
||||
irc.error(msg, s)
|
||||
return
|
||||
for s in Channel.users:
|
||||
s = s.strip()
|
||||
if not s:
|
||||
|
Loading…
Reference in New Issue
Block a user