Added a try/finally statement to the addMsg in __call__ so lastMsg will still get updated if it raises an exception.

This commit is contained in:
Jeremy Fincher 2003-09-23 16:08:05 +00:00
parent 20e5bdb50d
commit a6d71770c9
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class ChannelLogger(irclib.IrcCallback):
if self.lastMsg:
self.laststate.addMsg(irc, self.lastMsg)
finally:
# We must make this always gets updated.
# We must make this always gets updatedm
self.lastMsg = msg
def reset(self):