diff options
-rw-r--r-- | paramiko/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/client.py b/paramiko/client.py index 57e9919d..2e1a4dc4 100644 --- a/paramiko/client.py +++ b/paramiko/client.py @@ -272,7 +272,7 @@ class SSHClient (ClosingContextManager): retry_on_signal(lambda: sock.connect(addr)) # Break out of the loop on success break - except socket.error, e: + except socket.error as e: # Raise anything that isn't a straight up connection error # (such as a resolution error) if e.errno not in (ECONNREFUSED, EHOSTUNREACH): |