Give a proper error message for possibly uncaught exception: bug #839653.

This commit is contained in:
Jeremy Fincher 2003-11-11 11:37:17 +00:00
parent 3b6b478aac
commit 754978850c

View File

@ -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: