Handle LookupError when reading adblock zips

This commit is contained in:
Florian Bruhin 2017-02-08 19:46:09 +01:00
parent 4d08dc5ddb
commit 3adcfddfff

View File

@ -219,7 +219,7 @@ class HostBlocker:
try:
f = get_fileobj(byte_io)
except (OSError, UnicodeDecodeError, zipfile.BadZipFile,
zipfile.LargeZipFile) as e:
zipfile.LargeZipFile, LookupError) as e:
message.error("adblock: Error while reading {}: {} - {}".format(
byte_io.name, e.__class__.__name__, e))
return