aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2024-10-11 15:14:19 +0200
committerDennis Eriksen <d@ennis.no>2024-10-11 15:14:19 +0200
commit347f35462ddf8a12efe11ef650e0a6d565d83e78 (patch)
treef10d32e694707eb74ddfc955bb3ac58220527db9
parentfix pyproject.toml so project builds, and update deps (diff)
downloadenergyscripts-347f35462ddf8a12efe11ef650e0a6d565d83e78.tar.gz
ignore urllib3 warning about opensslHEADmain
-rw-r--r--scripts/common/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/common/__init__.py b/scripts/common/__init__.py
index e3ea442..c4fe9e7 100644
--- a/scripts/common/__init__.py
+++ b/scripts/common/__init__.py
@@ -4,8 +4,13 @@
import logging
import os
import sys
+import warnings
from datetime import datetime
+# Because of https://github.com/urllib3/urllib3/issues/3020
+# Ignore "not using openssl"-error from urllib3. From https://gist.github.com/fire015/f9482919434e57af8bbd0dbc24ecaa9e
+warnings.filterwarnings("ignore", module="urllib3")
+
# Get env var
def env(var_name, default=None):