Skip to content

Commit

Permalink
remove unsecure requests
Browse files Browse the repository at this point in the history
  • Loading branch information
muddymudskipper committed Sep 24, 2024
1 parent e6f4ada commit 40cd9cb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions cmem_plugin_shapes/plugin_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

from io import BytesIO
from json import load, loads
from os import environ
from pathlib import Path
from urllib.parse import quote_plus
from urllib.request import urlopen
from uuid import NAMESPACE_URL, uuid5
from warnings import simplefilter

from cmem.cmempy.api import send_request
from cmem.cmempy.config import get_dp_api_endpoint
Expand All @@ -25,16 +23,12 @@
from rdflib import RDF, RDFS, SH, XSD, Graph, Literal, Namespace, URIRef
from rdflib.namespace import split_uri
from str2bool import str2bool
from urllib3.exceptions import InsecureRequestWarning
from validators import url

from cmem_plugin_shapes.doc import SHAPES_DOC

from . import __path__

environ["SSL_VERIFY"] = "false"
simplefilter("ignore", category=InsecureRequestWarning)

SHUI = Namespace("https://vocab.eccenca.com/shui/")


Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ homepage = "https://github.com/eccenca/cmem-plugin-shapes"
python = "^3.11"
validators = "^0.34.0"
str2bool = "^1.1"
urllib3 = "^2.2.2"

[tool.poetry.dependencies.cmem-plugin-base]
version = "^4.7.0"
Expand Down

0 comments on commit 40cd9cb

Please sign in to comment.