diff --git a/libmat2/archive.py b/libmat2/archive.py index cfc96710029bfba088aeb458072df6af61483c1f..ec44ebde2a195c07cf545a49640cb58281ec0850 100644 --- a/libmat2/archive.py +++ b/libmat2/archive.py @@ -388,7 +388,7 @@ class ZipParser(ArchiveBasedAbstractParser): try: with zipfile.ZipFile(self.filename): pass - except zipfile.BadZipFile: + except (zipfile.BadZipFile, OSError): raise ValueError @staticmethod