diff --git a/eccs2.py b/eccs2.py index bad77970f61f0af953e2f3208b7552f33cbdefbf..02c76d1da8bcd4efd63a630bb864bfd1203fc3c8 100755 --- a/eccs2.py +++ b/eccs2.py @@ -119,7 +119,7 @@ def checkIdP(sp,idp,test): robots = requests.get("https://%s/robots.txt" % fqdn_idp, headers=headers, verify=True, timeout=ECCS2REQUESTSTIMEOUT) if (robots == ""): - robots = requests.get("http://%s/robots.txt" % fqdn_idp, headers=headers, verify=True, timeout=ECCS2REQUESTSTIMEOUT) + robots = requests.get("http://%s/robots.txt" % fqdn_idp, headers=headers, verify=False, timeout=ECCS2REQUESTSTIMEOUT) # Catch SSL Exceptions and block the ECCS check except (requests.exceptions.SSLError) as e: diff --git a/utils.py b/utils.py index ea20f62538d36b5522e464663a685474e42a54bd..6f95b3900a73c4777594e3a2b36ef4a43f821ea2 100644 --- a/utils.py +++ b/utils.py @@ -121,6 +121,7 @@ def getDriver(fqdn_idp=None,debugSelenium=False): chrome_options.add_argument('--no-sandbox') chrome_options.add_argument('--disable-dev-shm-usage') chrome_options.add_argument('--ignore-certificate-errors') + chrome_options.add_argument('--remote-debugging-port=9222') #chrome_options.add_argument('--start-maximized') # For DEBUG only (By default ChromeDriver logs only warnings/errors to stderr.