mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +01:00
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:
parent
20e5bdb50d
commit
a6d71770c9
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user