From f114132d417de1e6525d94b5d63f85c0c114e67f Mon Sep 17 00:00:00 2001 From: MuK IT GmbH Date: Fri, 24 Aug 2018 18:40:18 +0000 Subject: [PATCH] publish muk_utils - 11.0 --- muk_utils/tools/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/muk_utils/tools/http.py b/muk_utils/tools/http.py index cbd3453..9485957 100644 --- a/muk_utils/tools/http.py +++ b/muk_utils/tools/http.py @@ -54,9 +54,9 @@ def get_response(url): session = requests.Session() session.cookies['session_id'] = request.session.sid try: - response = session.post("%s%s" % (base_url, path), params) + response = session.post("%s%s" % (base_url, path), params, verify=False) return response.status_code, response.headers, response.content - except Exception as exception: + except requests.exceptions.SSLError as exception: _logger.info("Trying custom certificate") custom_cert = config.get("muk_custom_certificate", False) try: