Last active
October 31, 2015 03:21
-
-
Save ryandotclair/925d95afa27eb28a991c to your computer and use it in GitHub Desktop.
Disable warnings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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