Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jvoisin
mat2
Commits
1c4e9842
Commit
1c4e9842
authored
Nov 23, 2021
by
jvoisin
Browse files
Make the linter happier
parent
fb7440ab
Pipeline
#68878
failed with stages
in 22 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
libmat2/archive.py
View file @
1c4e9842
...
...
@@ -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
...
...
mat2
View file @
1c4e9842
...
...
@@ -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
e
x
:
print
(
e
x
)
sys
.
exit
(
1
)
__version__
=
'0.12.2'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment