diff options
| author | jvoisin | 2021-11-23 17:34:14 +0100 |
|---|---|---|
| committer | jvoisin | 2021-11-23 17:34:14 +0100 |
| commit | 1c4e98425a5a7923da36e99e7818070142963f1b (patch) | |
| tree | 0cf12f9ffd134a83a3807adf00e6d7f591da76f1 /libmat2/archive.py | |
| parent | fb7440ab5ddaffe52d1f765c59fecd2c0e3aa944 (diff) | |
Make the linter happier
Diffstat (limited to '')
| -rw-r--r-- | libmat2/archive.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmat2/archive.py b/libmat2/archive.py index f6db491..48c1594 100644 --- a/libmat2/archive.py +++ b/libmat2/archive.py | |||
| @@ -372,7 +372,8 @@ class ZipParser(ArchiveBasedAbstractParser): | |||
| 372 | 372 | ||
| 373 | def is_archive_valid(self): | 373 | def is_archive_valid(self): |
| 374 | try: | 374 | try: |
| 375 | zipfile.ZipFile(self.filename) | 375 | with zipfile.ZipFile(self.filename): |
| 376 | pass | ||
| 376 | except zipfile.BadZipFile: | 377 | except zipfile.BadZipFile: |
| 377 | raise ValueError | 378 | raise ValueError |
| 378 | 379 | ||
