mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-10-07 11:58:40 +02: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:
|
try:
|
||||||
for line in fd:
|
for line in fd:
|
||||||
line = line.strip()
|
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):
|
if p(url, nick):
|
||||||
L.append((url, nick))
|
L.append((url, nick))
|
||||||
seen = sets.Set()
|
seen = sets.Set()
|
||||||
|
Loading…
Reference in New Issue
Block a user