summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-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)