[Erp5-report] r26084 - /erp5/trunk/products/ERP5Type/SSHConnection.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Mar 17 20:46:29 CET 2009


Author: rafael
Date: Tue Mar 17 20:46:28 2009
New Revision: 26084

URL: http://svn.erp5.org?rev=26084&view=rev
Log:
Raise using the original Message .


Modified:
    erp5/trunk/products/ERP5Type/SSHConnection.py

Modified: erp5/trunk/products/ERP5Type/SSHConnection.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/SSHConnection.py?rev=26084&r1=26083&r2=26084&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/SSHConnection.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/SSHConnection.py [utf8] Tue Mar 17 20:46:28 2009
@@ -63,11 +63,9 @@
     rsa_key = paramiko.RSAKey.from_private_key_file(self.key_path)
     try:
       self.transport.connect(username=self.username, pkey=rsa_key)
-    except SSHException:
+    except SSHException, e:
       self.transport.close()
-      raise SSHConnectionError(self.host +
-                 ": The svn key is not good for this server," +
-                 " check if the hostname_erp5 is set to your wanted server")
+      raise SSHConnectionError(str(e))
     else:
       self.sftp = paramiko.SFTPClient.from_transport(self.transport)
 




More information about the Erp5-report mailing list