diff --git a/paramiko/client.py b/paramiko/client.py index b10a786..a142c0e 100644 --- a/paramiko/client.py +++ b/paramiko/client.py @@ -455,6 +455,7 @@ class SSHClient (object): if not remaining_auth_types: return two_factor = True + break except SSHException, e: saved_exception = e else: @@ -485,6 +486,7 @@ class SSHClient (object): if not remaining_auth_types: return two_factor = True + break except SSHException, e: saved_exception = e except IOError, e: