You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

6 lines
152 B

  1. import urllib3
  2. def silence_insecure_warnings(enable: bool):
  3. if enable:
  4. urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)