Author: [email protected]
Date: Thu Feb  5 05:57:04 2009
New Revision: 52

Modified:
   trunk/src/SSHLibrary/javaclient.py

Log:
Related to Issue 10: Clear requirement for paramiko, pycrypto and trilead in Installation Guide
More meaningful message when importing trilead fails

Modified: trunk/src/SSHLibrary/javaclient.py
==============================================================================
--- trunk/src/SSHLibrary/javaclient.py  (original)
+++ trunk/src/SSHLibrary/javaclient.py  Thu Feb  5 05:57:04 2009
@@ -17,8 +17,12 @@

 from java.io import BufferedReader, InputStreamReader, IOException, \
                     FileOutputStream, BufferedWriter, OutputStreamWriter
-from com.trilead.ssh2 import StreamGobbler, SCPClient, Connection, SFTPv3Client, \
+try:
+ from com.trilead.ssh2 import StreamGobbler, SCPClient, Connection, SFTPv3Client, \ SFTPv3FileAttributes, SFTPException, DebugLogger
+except ImportError:
+    raise ImportError('Importing TriLead failed.'
+                      'Make sure you have it installed.')


 class SSHClient(object):

Reply via email to