Skip to content
Snippets Groups Projects
Commit 1c4e9842 authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Make the linter happier

parent fb7440ab
No related branches found
No related tags found
No related merge requests found
Pipeline #68878 failed
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment