From dbb27a77715748616c67ae2fb4732ade64fa2cfb Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Thu, 18 Jul 2019 11:13:58 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E5=A4=8D=E7=BD=91=E5=85=B3?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=BF=9E=E6=8E=A5=E5=A4=B1=E8=B4=A5=E6=9C=AA?= =?UTF-8?q?=E6=8D=95=E8=8E=B7=E5=AF=BC=E8=87=B4=E6=8A=A5500=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/models/domain.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/assets/models/domain.py b/apps/assets/models/domain.py index 5deefc35c..9bee7f77e 100644 --- a/apps/assets/models/domain.py +++ b/apps/assets/models/domain.py @@ -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: