[paramiko] what is the exception if sftp object dies
Manpreet Singh Khurana
manpreetsk at gmail.com
Thu Mar 22 08:09:56 PDT 2007
Hi,
I am doing sftp transport connection by doing
sftp = paramiko.SFTP.from_transport(tc)
on this sftp object i do all the read and write operation for a file.
Now if for some reason the SFTP connection is gone and if we are
trying to do something like
sftp.read() operation, this will fail since there no sftp connection alive
In this case what sort of exception is returned?
Actually i need to catch this and try SFTP connection again.
Manpreet
More information about the paramiko
mailing list