mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-07 19:19:24 +00:00
Mute urlib3 ssl warnings when SSL verification is disabled
This commit is contained in:
@@ -27,7 +27,7 @@ class ElasticWrap:
|
||||
self.url: str = f"{self.ES_URL}/{path}"
|
||||
self.auth: tuple[str, str] = (self.ES_USER, self.ES_PASS)
|
||||
|
||||
if not self.ES_DISABLE_VERIFY_SSL:
|
||||
if self.ES_DISABLE_VERIFY_SSL:
|
||||
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
||||
|
||||
def get(
|
||||
|
||||
Reference in New Issue
Block a user