[Twisted-Python] How-to raise errors with sshclient conch example in Twisted book

Kuba Konczyk jakamkon at gmail.com
Fri May 30 04:08:58 EDT 2008


2008/5/30 asset <asset at impactdamage.com>:
[...]
>
> When working the with sshclient.py example (from the Twisted book, and the
> link above) I find the reactor hangs and does not raise an exception on
> connection failures or failed authentication.
>
Try to turn on logging using twisted.python.log(sys.stderr).I would
also suggest to put it after getpass in example you're using.
For handling a connection failures have a look at
clientConnectionFailed in ClientFactory and for a authentication
errors receiveError in SSHClientTransport.

>
> TKiel
jkk




More information about the Twisted-Python mailing list