summaryrefslogtreecommitdiff
path: root/glanceclient/common/https.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-02-19 17:58:58 +0000
committerGerrit Code Review <review@openstack.org>2015-02-19 17:58:58 +0000
commit72f0bc3579043b2f6ebb3fcf06a96e43406e5664 (patch)
tree757eeac42fadb0ea2733f85066eb010d73cc6221 /glanceclient/common/https.py
parenta3eaafefbdcec0231db33c44cca718526f9c96cc (diff)
parentb96f6130265797489e684a4bc123a7a1f5118d2c (diff)
downloadpython-glanceclient-72f0bc3579043b2f6ebb3fcf06a96e43406e5664.tar.gz
Merge "Update HTTPS certificate handling for pep-0476"
Diffstat (limited to 'glanceclient/common/https.py')
-rw-r--r--glanceclient/common/https.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/glanceclient/common/https.py b/glanceclient/common/https.py
index 0635dd4..b81f7ac 100644
--- a/glanceclient/common/https.py
+++ b/glanceclient/common/https.py
@@ -149,7 +149,11 @@ class VerifiedHTTPSConnection(HTTPSConnection):
if six.PY3:
excp_lst = (TypeError, FileNotFoundError, ssl.SSLError)
else:
- excp_lst = ()
+ # NOTE(jamespage)
+ # Accomodate changes in behaviour for pep-0467, introduced
+ # in python 2.7.9.
+ # https://github.com/python/peps/blob/master/pep-0476.txt
+ excp_lst = (TypeError, IOError, ssl.SSLError)
try:
HTTPSConnection.__init__(self, host, port,
key_file=key_file,