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):
|
||||
try:
|
||||
zipfile.ZipFile(self.filename)
|
||||
with zipfile.ZipFile(self.filename):
|
||||
pass
|
||||
except zipfile.BadZipFile:
|
||||
raise ValueError
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user