1
0
Fork 0

Make the linter happier

This commit is contained in:
jvoisin 2021-11-23 17:34:14 +01:00
parent fb7440ab5d
commit 1c4e98425a
2 changed files with 4 additions and 3 deletions

View File

@ -372,7 +372,8 @@ class ZipParser(ArchiveBasedAbstractParser):
def is_archive_valid(self):
try:
zipfile.ZipFile(self.filename)
with zipfile.ZipFile(self.filename):
pass
except zipfile.BadZipFile:
raise ValueError

4
mat2
View File

@ -13,8 +13,8 @@ import concurrent.futures
try:
from libmat2 import parser_factory, UNSUPPORTED_EXTENSIONS
from libmat2 import check_dependencies, UnknownMemberPolicy
except ValueError as e:
print(e)
except ValueError as ex:
print(ex)
sys.exit(1)
__version__ = '0.12.2'