Update handler.py

pull/201/head
ltz3317 2020-12-26 15:54:24 +08:00 committed by GitHub
parent 9033e06072
commit 074302da46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
logging.info('Connecting to {}:{}'.format(*dst_addr))
try:
ssh.connect(*args, timeout=options.timeout)
ssh.connect(*args, timeout=options.timeout, auth_timeout=options.auth_timeout,)
except socket.error:
raise ValueError('Unable to connect to {}:{}'.format(*dst_addr))
except paramiko.BadAuthenticationType: