From 287167d42a9054ba3dead9abfcd52f643bd0c9d2 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 17 Dec 2024 15:19:08 +0000 Subject: [PATCH] Removed SSL_VERIFY=False environment variable setting for requests --- CHANGELOG.md | 1 + cmem_plugin_pyshacl/plugin_pyshacl.py | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c172f29..db4b18e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p - Update execution report - Reduce memory usage when parsing graphs from CMEM by creating temporary file - Validate parameters at initialisation +- Removed SSL_VERIFY=False environment variable setting for requests ## [5.1.0] 2024-12-03 diff --git a/cmem_plugin_pyshacl/plugin_pyshacl.py b/cmem_plugin_pyshacl/plugin_pyshacl.py index db7c2fa..2b4409b 100644 --- a/cmem_plugin_pyshacl/plugin_pyshacl.py +++ b/cmem_plugin_pyshacl/plugin_pyshacl.py @@ -2,10 +2,8 @@ from collections import OrderedDict from datetime import UTC, datetime -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_streamed, post_streamed @@ -45,10 +43,6 @@ 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#") SH_PROPERTIES = [