bug 192749: document that SSHClient.connect may throw socket.error.
This commit is contained in:
Robey Pointer 2008-03-22 19:45:55 -07:00
parent 50d63690ee
commit 7b819f0e91
1 changed files with 1 additions and 0 deletions

View File

@ -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: