Handle LookupError when reading adblock zips
This commit is contained in:
parent
4d08dc5ddb
commit
3adcfddfff
@ -219,7 +219,7 @@ class HostBlocker:
|
|||||||
try:
|
try:
|
||||||
f = get_fileobj(byte_io)
|
f = get_fileobj(byte_io)
|
||||||
except (OSError, UnicodeDecodeError, zipfile.BadZipFile,
|
except (OSError, UnicodeDecodeError, zipfile.BadZipFile,
|
||||||
zipfile.LargeZipFile) as e:
|
zipfile.LargeZipFile, LookupError) as e:
|
||||||
message.error("adblock: Error while reading {}: {} - {}".format(
|
message.error("adblock: Error while reading {}: {} - {}".format(
|
||||||
byte_io.name, e.__class__.__name__, e))
|
byte_io.name, e.__class__.__name__, e))
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user