diff options
| author | Ken Giusti <kgiusti@apache.org> | 2013-05-23 14:39:10 +0000 |
|---|---|---|
| committer | Ken Giusti <kgiusti@apache.org> | 2013-05-23 14:39:10 +0000 |
| commit | 35db2ad906db2087a599e4502e7f5155770010b4 (patch) | |
| tree | be53d9a9a1482db6523cfa45a605a66bf7db75c8 /python | |
| parent | a408de71eb1b40927535eb6c7471cfc57cffe6f0 (diff) | |
| download | qpid-python-35db2ad906db2087a599e4502e7f5155770010b4.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')
| -rw-r--r-- | python/qpid/messaging/transports.py | 2 |
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) |
