Commit 1c4e9842 authored by jvoisin's avatar jvoisin
Browse files

Make the linter happier

parent fb7440ab
Pipeline #68878 failed with stages
in 22 seconds
......@@ -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
......
......@@ -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'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment