Update download_tool.py
This commit is contained in:
parent
9a4fb87d44
commit
4a48b0ab21
|
@ -124,7 +124,7 @@ def main() -> None:
|
||||||
download(url, response, output)
|
download(url, response, output)
|
||||||
except urllib.error.URLError as e:
|
except urllib.error.URLError as e:
|
||||||
if str(e).find("CERTIFICATE_VERIFY_FAILED") == -1:
|
if str(e).find("CERTIFICATE_VERIFY_FAILED") == -1:
|
||||||
return
|
raise e
|
||||||
try:
|
try:
|
||||||
import certifi
|
import certifi
|
||||||
import ssl
|
import ssl
|
||||||
|
|
Loading…
Reference in New Issue