summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--paramiko/client.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/paramiko/client.py b/paramiko/client.py
index b10a7867..a142c0e9 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: