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 | 69c58c1fd47484a45dcfdb32420d3dfb164221f7 (patch) | |
| tree | be53d9a9a1482db6523cfa45a605a66bf7db75c8 /python/qpid | |
| parent | 057bf80a65e5271e631eb02b64d13b00b36c1c97 (diff) | |
| download | qpid-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.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) |
