From d580feab6263cebe2ec2f0fbe97f04fb5d458c49 Mon Sep 17 00:00:00 2001 From: Mark Jordan Date: Tue, 26 Mar 2024 10:50:04 -0700 Subject: [PATCH] Better certificate warning suppression thanks to @ajstanley. --- workbench_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/workbench_utils.py b/workbench_utils.py index 3b7f7b3..1e911ec 100644 --- a/workbench_utils.py +++ b/workbench_utils.py @@ -225,6 +225,9 @@ def issue_request(config, method, path, headers=None, json="", data="", query=No ------- requests.Response """ + if config["secure_ssl_only"] is False: + requests.packages.urllib3.disable_warnings() + if not config["password"]: message = ( 'Password for Drupal user not found. Please add the "password" option to your configuration '