From 6abec9401bfaf4ee4b773cb1e41aa943d5f9a59e Mon Sep 17 00:00:00 2001 From: Igor Rzegocki Date: Sat, 23 Sep 2023 15:00:46 +0200 Subject: [PATCH] Mute urlib3 ssl warnings when SSL verification is disabled --- tubearchivist/home/src/es/connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubearchivist/home/src/es/connect.py b/tubearchivist/home/src/es/connect.py index afbdc61..43e2f6e 100644 --- a/tubearchivist/home/src/es/connect.py +++ b/tubearchivist/home/src/es/connect.py @@ -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(