1
0
mirror of synced 2024-11-25 02:34:24 +01:00

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): def is_archive_valid(self):
try: try:
zipfile.ZipFile(self.filename) with zipfile.ZipFile(self.filename):
pass
except zipfile.BadZipFile: except zipfile.BadZipFile:
raise ValueError raise ValueError

4
mat2
View File

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