Author: kgiusti
Date: Thu May 23 14:39:10 2013
New Revision: 1485741
URL: http://svn.apache.org/r1485741
Log:
QPID-4882: use correct exception object for older ssl implemenations
Modified:
qpid/trunk/qpid/python/qpid/messaging/transports.py
Modified: qpid/trunk/qpid/python/qpid/messaging/transports.py
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/messaging/transports.py?rev=1485741&r1=1485740&r2=1485741&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/messaging/transports.py (original)
+++ qpid/trunk/qpid/python/qpid/messaging/transports.py Thu May 23 14:39:10 2013
@@ -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)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]