From 82a055c466c103c0b75e36aec76f1423b2c66229 Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 29 Dec 2004 14:20:00 +0000 Subject: [PATCH] Fix an exception. There may be a better way to fix this (jemfinch), but this will at least stop the exceptions. --- plugins/RawLogger.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/RawLogger.py b/plugins/RawLogger.py index 5f686fe07..e9bb43138 100644 --- a/plugins/RawLogger.py +++ b/plugins/RawLogger.py @@ -50,9 +50,10 @@ class RawLogger(irclib.IrcCallback): world.flushers.append(self._flush) def die(self): - world.flushers.remove(self._flush) + if self._flush in world.flushers: + world.flushers.remove(self._flush) self.fd.close() - + def inFilter(self, irc, msg): self.fd.write(str(msg)) return msg