Fix for client with python 3.6

This commit is contained in:
Adolfo Gómez García 2021-10-01 12:35:20 +02:00
parent abafa7bfac
commit 8ef97a7773

View File

@ -185,8 +185,8 @@ class RestApi:
) -> typing.Any: ) -> typing.Any:
print('Open') print('Open')
ctx = ssl.create_default_context() ctx = ssl.create_default_context()
ctx.verify_mode = ssl.CERT_NONE
ctx.check_hostname = False ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
ctx.load_verify_locations(tools.getCaCertsFile()) ctx.load_verify_locations(tools.getCaCertsFile())
hostname = urllib.parse.urlparse(url)[1] hostname = urllib.parse.urlparse(url)[1]
serial = '' serial = ''