Caught another possible exception because I searched the tests' misc.log for exceptions.

This commit is contained in:
Jeremy Fincher 2004-09-16 14:46:09 +00:00
parent 5d60ece2ac
commit 82e85fbd4f

View File

@ -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()