From 4bc8fba7c3e9ed3cc884f5db754a8e1d89ac66cb Mon Sep 17 00:00:00 2001 From: Quazgar <quazgar@posteo.de> Date: Mon, 28 Oct 2019 14:52:20 +0000 Subject: [PATCH] ENH: Print "insecure ssl" warning to stderr. --- src/caosdb/connection/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/caosdb/connection/connection.py b/src/caosdb/connection/connection.py index 08723bfe..544dff28 100644 --- a/src/caosdb/connection/connection.py +++ b/src/caosdb/connection/connection.py @@ -172,7 +172,7 @@ class _DefaultCaosDBServerConnection(CaosDBServerConnection): print("*** Warning! ***\n" "Insecure SSL mode, certificate will not be checked! " "Please consider removing the `ssl_insecure` configuration option.\n" - "****************") + "****************", file=sys.stderr) context.verify_mode = ssl.CERT_NONE if (not context.verify_mode == ssl.CERT_NONE and -- GitLab