diff --git a/scripts/parallel-client.py b/scripts/parallel-client.py index 5394cc2..6d5b5de 100644 --- a/scripts/parallel-client.py +++ b/scripts/parallel-client.py @@ -27,7 +27,6 @@ import requests import numpy as np import ssl -import sys import time import urllib3 @@ -265,7 +264,10 @@ async def run_async_httpx(args): def main(): - urllib3.disable_warnings(urllib3.exceptions.SubjectAltNameWarning) + try: + urllib3.disable_warnings(urllib3.exceptions.SubjectAltNameWarning) + except: + pass args = get_args() start = time.time() num_errors = 0 diff --git a/scripts/requirements.txt b/scripts/requirements.txt index 7b421ce..4d5f977 100644 --- a/scripts/requirements.txt +++ b/scripts/requirements.txt @@ -2,3 +2,4 @@ numcodecs numpy requests s3fs +httpx