Make the linter happier
This commit is contained in:
parent
fb7440ab5d
commit
1c4e98425a
@ -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
4
mat2
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user