Try to mute TLS warnings
This commit is contained in:
parent
222a3f1cfd
commit
0076242349
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@ import ssl
|
||||||
from typing import List, Dict
|
from typing import List, Dict
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
import urllib3
|
||||||
from requests.auth import HTTPBasicAuth
|
from requests.auth import HTTPBasicAuth
|
||||||
|
|
||||||
from hmdooris.AppException import AppException
|
from hmdooris.AppException import AppException
|
||||||
|
@ -44,6 +45,8 @@ class CCUJack:
|
||||||
self.kvargs['auth'] = HTTPBasicAuth(username, password)
|
self.kvargs['auth'] = HTTPBasicAuth(username, password)
|
||||||
if certpath is not None and certpath != '':
|
if certpath is not None and certpath != '':
|
||||||
self.kvargs['verify'] = certpath
|
self.kvargs['verify'] = certpath
|
||||||
|
if certpath is True:
|
||||||
|
urllib3.disable_warnings()
|
||||||
self.locks : Dict[str, CCUJackHmIPDLD] = {}
|
self.locks : Dict[str, CCUJackHmIPDLD] = {}
|
||||||
self.get_all_locks()
|
self.get_all_locks()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue