Skip to content

Instantly share code, notes, and snippets.

@ryandotclair
Last active October 31, 2015 03:21
Show Gist options
  • Save ryandotclair/925d95afa27eb28a991c to your computer and use it in GitHub Desktop.
Save ryandotclair/925d95afa27eb28a991c to your computer and use it in GitHub Desktop.
Disable warnings
# Disable warnings from untrusted server certificates
try:
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
except Exception:
logger.info("Ignore messages related to insecure SSL certificates")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment