diff options
| author | Kenneth Anthony Giusti <kgiusti@apache.org> | 2013-05-23 14:39:10 +0000 |
|---|---|---|
| committer | Kenneth Anthony Giusti <kgiusti@apache.org> | 2013-05-23 14:39:10 +0000 |
| commit | 636440e703df144a1df65da0e3422dd5354c2d84 (patch) | |
| tree | 32f83dd4897f2ad229420389d397956a5907dde4 /qpid/python | |
| parent | 0e3b9844ba1a99cd0b911cae40426f8a0ca3fae8 (diff) | |
| download | qpid-python-636440e703df144a1df65da0e3422dd5354c2d84.tar.gz | |
QPID-4882: use correct exception object for older ssl implemenations
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1485741 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
| -rw-r--r-- | qpid/python/qpid/messaging/transports.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/python/qpid/messaging/transports.py b/qpid/python/qpid/messaging/transports.py index 3751aa1d77..c36d7891b3 100644 --- a/qpid/python/qpid/messaging/transports.py +++ b/qpid/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) |
