Mute urlib3 ssl warnings when SSL verification is disabled

This commit is contained in:
Igor Rzegocki 2023-09-23 15:00:46 +02:00 committed by GitHub
parent dcbd8d2a55
commit 6abec9401b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(