mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Caught another possible exception because I searched the tests' misc.log for exceptions.
This commit is contained in:
parent
5d60ece2ac
commit
82e85fbd4f
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user