diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2012-11-05 17:47:33 -0800 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2012-11-05 17:47:33 -0800 |
commit | fd392d6b2090d227937add287a2ad0f8eb5cba59 (patch) | |
tree | d0ff09497394b60f1ae4b21da18a4b99f4b8efe1 | |
parent | 191a5fc08cb8ce08917ad4e8739d7d5efbec2be2 (diff) |
One more patch from @clarete's work
-rw-r--r-- | paramiko/transport.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/paramiko/transport.py b/paramiko/transport.py index 04680a9f..c8010312 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -44,7 +44,8 @@ from paramiko.primes import ModulusPack from paramiko.rsakey import RSAKey from paramiko.server import ServerInterface from paramiko.sftp_client import SFTPClient -from paramiko.ssh_exception import SSHException, BadAuthenticationType, ChannelException +from paramiko.ssh_exception import (SSHException, BadAuthenticationType, + ChannelException, ProxyCommandFailure) from paramiko.util import retry_on_signal from Crypto import Random @@ -1674,6 +1675,8 @@ class Transport (threading.Thread): timeout = 2 try: buf = self.packetizer.readline(timeout) + except ProxyCommandFailure: + raise except Exception, x: raise SSHException('Error reading SSH protocol banner' + str(x)) if buf[:4] == 'SSH-': |