Catch an exception uncaught before.

This commit is contained in:
Jeremy Fincher 2004-01-15 11:25:04 +00:00
parent d33c5333c5
commit 4db8dfb773

View File

@ -655,8 +655,13 @@ class Relay(callbacks.Privmsg, configurable.Mixin):
if channel in self.channels:
for otherIrc in self.ircs.itervalues():
if otherIrc != irc:
if otherIrc.state.getTopic(channel) != topic:
otherIrc.queueMsg(ircmsgs.topic(channel, topic))
try:
if otherIrc.state.getTopic(channel) != topic:
otherIrc.queueMsg(ircmsgs.topic(channel,topic))
except KeyError:
self.log.warning('Odd, not on %s on %s -- '
'Can\'t synchronize topics.',
channel, otherIrc.server)
return msg