Skip to content
Snippets Groups Projects
Verified Commit de6c562c authored by Daniel Hornung's avatar Daniel Hornung
Browse files

ENH: Ignoring urllib warnings when ssl_insecure is given.

parent 61ad6844
No related branches found
No related tags found
1 merge request!95DOC: Added CITATION.cff to the list of files in the release guide where the...
Pipeline #33860 passed
...@@ -287,6 +287,8 @@ class _DefaultCaosDBServerConnection(CaosDBServerConnection): ...@@ -287,6 +287,8 @@ class _DefaultCaosDBServerConnection(CaosDBServerConnection):
"Insecure SSL mode, certificate will not be checked! " "Insecure SSL mode, certificate will not be checked! "
"Please consider removing the `ssl_insecure` configuration option.\n" "Please consider removing the `ssl_insecure` configuration option.\n"
"****************") "****************")
warnings.filterwarnings(action="ignore", module="urllib3",
message="Unverified HTTPS request is being made")
verify = False verify = False
if verify is not None: if verify is not None:
self._session.verify = verify self._session.verify = verify
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment