Skip to content
Snippets Groups Projects
Commit 87af358c authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

BadZipFile is new in version 3.2

parent f97c236e
No related branches found
No related tags found
1 merge request!4Update robotpkg-test-rc.py for pinocchio v2.0.0 tests
......@@ -2,7 +2,7 @@
from io import BytesIO
from pathlib import Path
from zipfile import BadZipFile, ZipFile
from zipfile import ZipFile
import requests
......@@ -25,7 +25,7 @@ if __name__ == '__main__':
z = ZipFile(BytesIO(r.content))
path.mkdir(parents=True, exist_ok=True)
z.extractall(str(path))
except BadZipFile:
except Exception:
pass
if path.exists():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment