bug 192749: document that SSHClient.connect may throw socket.error.
This commit is contained in:
parent
50d63690ee
commit
7b819f0e91
|
@ -271,6 +271,7 @@ class SSHClient (object):
|
||||||
@raise AuthenticationException: if authentication failed
|
@raise AuthenticationException: if authentication failed
|
||||||
@raise SSHException: if there was any other error connecting or
|
@raise SSHException: if there was any other error connecting or
|
||||||
establishing an SSH session
|
establishing an SSH session
|
||||||
|
@raise socket.error: if a socket error occurred while connecting
|
||||||
"""
|
"""
|
||||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
if timeout is not None:
|
if timeout is not None:
|
||||||
|
|
Loading…
Reference in New Issue