mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-05-07 23:27:26 +02:00
Fix an exception. There may be a better way to fix this (jemfinch), but
this will at least stop the exceptions.
This commit is contained in:
parent
6d2a52613b
commit
82a055c466
@ -50,9 +50,10 @@ class RawLogger(irclib.IrcCallback):
|
|||||||
world.flushers.append(self._flush)
|
world.flushers.append(self._flush)
|
||||||
|
|
||||||
def die(self):
|
def die(self):
|
||||||
world.flushers.remove(self._flush)
|
if self._flush in world.flushers:
|
||||||
|
world.flushers.remove(self._flush)
|
||||||
self.fd.close()
|
self.fd.close()
|
||||||
|
|
||||||
def inFilter(self, irc, msg):
|
def inFilter(self, irc, msg):
|
||||||
self.fd.write(str(msg))
|
self.fd.write(str(msg))
|
||||||
return msg
|
return msg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user