From 4f8c230d3db3b335880fa4f26e8e69daead90fea Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 23 Jul 2024 16:15:44 +0100 Subject: [PATCH] ignore InsecureRequestWarning --- cmem_plugin_pyshacl/plugin_pyshacl.py | 3 +++ poetry.lock | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cmem_plugin_pyshacl/plugin_pyshacl.py b/cmem_plugin_pyshacl/plugin_pyshacl.py index a9b1d44..4f4cce7 100644 --- a/cmem_plugin_pyshacl/plugin_pyshacl.py +++ b/cmem_plugin_pyshacl/plugin_pyshacl.py @@ -5,6 +5,7 @@ from os import environ from tempfile import NamedTemporaryFile from time import time +from warnings import simplefilter import validators.url from cmem.cmempy.dp.proxy.graph import get, post_streamed @@ -43,8 +44,10 @@ URIRef, ) from rdflib.term import Node +from urllib3.exceptions import InsecureRequestWarning environ["SSL_VERIFY"] = "false" +simplefilter("ignore", category=InsecureRequestWarning) SKOSXL = Namespace("http://www.w3.org/2008/05/skos-xl#") DATA_GRAPH_TYPES = [ diff --git a/poetry.lock b/poetry.lock index 80e54b5..11f6de4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -319,13 +319,13 @@ files = [ [[package]] name = "importlib-metadata" -version = "8.0.0" +version = "8.1.0" description = "Read metadata from Python packages" optional = false python-versions = ">=3.8" files = [ - {file = "importlib_metadata-8.0.0-py3-none-any.whl", hash = "sha256:15584cf2b1bf449d98ff8a6ff1abef57bf20f3ac6454f431736cd3e660921b2f"}, - {file = "importlib_metadata-8.0.0.tar.gz", hash = "sha256:188bd24e4c346d3f0a933f275c2fec67050326a856b9a359881d7c2a697e8812"}, + {file = "importlib_metadata-8.1.0-py3-none-any.whl", hash = "sha256:3cd29f739ed65973840b068e3132135ce954c254d48b5b640484467ef7ab3c8c"}, + {file = "importlib_metadata-8.1.0.tar.gz", hash = "sha256:fcdcb1d5ead7bdf3dd32657bb94ebe9d2aabfe89a19782ddc32da5041d6ebfb4"}, ] [package.dependencies]