Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions shotgun_api3/shotgun.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,11 @@ def __init__(self):
# extract the OpenSSL version if we can. The version is only available in Python 2.7 and
# only if we successfully imported ssl
self.ssl_version = "unknown"

# -- This is the way to allow unverified SSL
if NO_SSL_VALIDATION:
ssl._create_default_https_context = ssl._create_unverified_context

try:
self.ssl_version = ssl.OPENSSL_VERSION
except (AttributeError, NameError):
Expand Down