aboutsummaryrefslogtreecommitdiff
path: root/gantools/ganbreeder.py
diff options
context:
space:
mode:
authorVee9ahd1 <[email protected]>2019-05-20 22:19:22 -0400
committerVee9ahd1 <[email protected]>2019-05-20 22:19:22 -0400
commite26ad5895db525bae4bf1ad89b478eb6d5865238 (patch)
tree9371eb28177cb16f9a38db81b8d2baab704fc332 /gantools/ganbreeder.py
parent23d4959d67eaf79063e93640690955eaaf82e8ec (diff)
possible fix for urllib error
Diffstat (limited to 'gantools/ganbreeder.py')
-rw-r--r--gantools/ganbreeder.py5
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'