Skip to content

Commit

Permalink
Better certificate warning suppression thanks to @ajstanley.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjordan committed Mar 26, 2024
1 parent e19f9fb commit d580fea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions workbench_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '
Expand Down

0 comments on commit d580fea

Please sign in to comment.