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 = [] 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: