From 550bcdad5d49353305e1dbdb1dc50e5817bc87a7 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 3 Oct 2004 09:21:06 +0000 Subject: [PATCH] Fix for bug #1036861. --- src/ircdb.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ircdb.py b/src/ircdb.py index a1b6906f1..8bf1a6582 100644 --- a/src/ircdb.py +++ b/src/ircdb.py @@ -540,7 +540,7 @@ class IrcChannelCreator(Creator): def ignore(self, rest, lineno): if self.name is None: raise ValueError, 'Unexpected channel description without channel.' - (pattern, expiration) = rest + (pattern, expiration) = rest.split() self.c.ignores[pattern] = int(float(expiration)) def finish(self): @@ -569,9 +569,11 @@ class UsersDictionary(utils.IterableMap): reader.readFile(filename) self.noFlush = False self.flush() - except Exception, e: + except EnvironmentError, e: log.error('Invalid user dictionary file, resetting to empty.') log.error('Exact error: %s', utils.exnToString(e)) + except Exception, e: + log.exception('Exact error:') finally: self.noFlush = False