mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +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 = []
|
voices = []
|
||||||
usersS = []
|
usersS = []
|
||||||
if abbreviation != self.abbreviations[realIrc]:
|
if abbreviation != self.abbreviations[realIrc]:
|
||||||
|
try:
|
||||||
Channel = otherIrc.state.channels[channel]
|
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:
|
for s in Channel.users:
|
||||||
s = s.strip()
|
s = s.strip()
|
||||||
if not s:
|
if not s:
|
||||||
|
Loading…
Reference in New Issue
Block a user