From 82e85fbd4fa277ef7424a048c2620611b6d23367 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 16 Sep 2004 14:46:09 +0000 Subject: [PATCH] Caught another possible exception because I searched the tests' misc.log for exceptions. --- plugins/URL.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/URL.py b/plugins/URL.py index 052fe0161..a1acc34b1 100644 --- a/plugins/URL.py +++ b/plugins/URL.py @@ -127,7 +127,11 @@ class URLDB(object): try: for line in fd: line = line.strip() - (url, nick) = line.split() + try: + (url, nick) = line.split() + except ValueError: # unpack list of wrong size. + self.log.warning('Invalid line in URLDB: %r.', line) + continue if p(url, nick): L.append((url, nick)) seen = sets.Set()