mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +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:
|
if self.lastMsg:
|
||||||
self.laststate.addMsg(irc, self.lastMsg)
|
self.laststate.addMsg(irc, self.lastMsg)
|
||||||
finally:
|
finally:
|
||||||
# We must make this always gets updated.
|
# We must make this always gets updatedm
|
||||||
self.lastMsg = msg
|
self.lastMsg = msg
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user