mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-05 17:30:30 +00:00
Merge pull request #2984 from jumpserver/gateway_conn_bug
[Bugfix] 修复网关测试连接失败未捕获导致报500的bug
This commit is contained in:
@@ -75,7 +75,8 @@ class Gateway(AssetUser):
|
|||||||
pkey=self.private_key_obj)
|
pkey=self.private_key_obj)
|
||||||
except(paramiko.AuthenticationException,
|
except(paramiko.AuthenticationException,
|
||||||
paramiko.BadAuthenticationType,
|
paramiko.BadAuthenticationType,
|
||||||
paramiko.SSHException) as e:
|
paramiko.SSHException,
|
||||||
|
paramiko.ssh_exception.NoValidConnectionsError) as e:
|
||||||
return False, str(e)
|
return False, str(e)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user