Always verify SSL connections.

Strangely enough, without verify=True we get:
requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
This commit is contained in:
2016-08-05 16:10:43 +02:00
parent 66c9200f0c
commit a3c87c27da

View File

@@ -91,12 +91,14 @@ class Api(object):
url, method,
data=body,
files=files,
headers=http_headers)
headers=http_headers,
verify=True)
else:
http_headers['Content-Type'] = "application/json"
return self.http_call(url, method,
data=json.dumps(body),
headers=http_headers)
headers=http_headers,
verify=True)
# Handle unauthorized token
except exceptions.UnauthorizedAccess as error: