qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgiu...@apache.org
Subject svn commit: r1485741 - /qpid/trunk/qpid/python/qpid/messaging/transports.py
Date Thu, 23 May 2013 14:39:10 GMT
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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message