Commit dbb27a77 authored by jym503558564's avatar jym503558564

[Bugfix] 修复网关测试连接失败未捕获导致报500的bug

parent 40de7d64
...@@ -75,7 +75,8 @@ class Gateway(AssetUser): ...@@ -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:
......
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