summaryrefslogtreecommitdiff
path: root/python/qpid
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2013-05-23 14:39:10 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2013-05-23 14:39:10 +0000
commit69c58c1fd47484a45dcfdb32420d3dfb164221f7 (patch)
treebe53d9a9a1482db6523cfa45a605a66bf7db75c8 /python/qpid
parent057bf80a65e5271e631eb02b64d13b00b36c1c97 (diff)
downloadqpid-python-69c58c1fd47484a45dcfdb32420d3dfb164221f7.tar.gz
QPID-4882: use correct exception object for older ssl implemenations
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1485741 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid')
-rw-r--r--python/qpid/messaging/transports.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/qpid/messaging/transports.py b/python/qpid/messaging/transports.py
index 3751aa1d77..c36d7891b3 100644
--- a/python/qpid/messaging/transports.py
+++ b/python/qpid/messaging/transports.py
@@ -76,7 +76,7 @@ except ImportError:
# supplied CA certs. Since this version cannot validate, the peer cannot
# be trusted.
if conn.ssl_trustfile:
- raise SSLError("This version of Python does not support verification of the peer's certificate.")
+ raise socket.error("This version of Python does not support verification of the peer's certificate.")
self.ssl = ssl(self.socket, keyfile=ssl_keyfile, certfile=ssl_certfile)
self.socket.setblocking(1)