From e26ad5895db525bae4bf1ad89b478eb6d5865238 Mon Sep 17 00:00:00 2001 From: Vee9ahd1 Date: Mon, 20 May 2019 22:19:22 -0400 Subject: possible fix for urllib error --- gantools/ganbreeder.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gantools/ganbreeder.py') 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: +import urllib +urllib.disable_warnings(urllib3.exceptions.InsecureRequestWarning) + def login(username, password): def get_sid(): url = 'https://ganbreeder.app/login' -- cgit v1.2.1