Unverified Commit 97bc3d5e authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #2984 from jumpserver/gateway_conn_bug

[Bugfix] 修复网关测试连接失败未捕获导致报500的bug
parents ea11aa4a dbb27a77
......@@ -75,7 +75,8 @@ class Gateway(AssetUser):
pkey=self.private_key_obj)
except(paramiko.AuthenticationException,
paramiko.BadAuthenticationType,
paramiko.SSHException) as e:
paramiko.SSHException,
paramiko.ssh_exception.NoValidConnectionsError) as e:
return False, str(e)
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment