diff options
author | Vee9ahd1 <[email protected]> | 2019-05-20 22:19:22 -0400 |
---|---|---|
committer | Vee9ahd1 <[email protected]> | 2019-05-20 22:19:22 -0400 |
commit | e26ad5895db525bae4bf1ad89b478eb6d5865238 (patch) | |
tree | 9371eb28177cb16f9a38db81b8d2baab704fc332 | |
parent | 23d4959d67eaf79063e93640690955eaaf82e8ec (diff) |
possible fix for urllib error
-rw-r--r-- | gantools/ganbreeder.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gantools/ganbreeder.py b/gantools/ganbreeder.py index 22d1adf..05cd7b9 100644 --- a/gantools/ganbreeder.py +++ b/gantools/ganbreeder.py @@ -2,6 +2,11 @@ import requests import json +#fix: +# urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)> +import urllib +urllib.disable_warnings(urllib3.exceptions.InsecureRequestWarning) + def login(username, password): def get_sid(): url = 'https://ganbreeder.app/login' |