From a99d5609fad2d38b97c43babd9179e2f3b646d47 Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 12 Dec 2018 18:00:21 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E5=A4=8D=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=A1=AC=E4=BB=B6=E7=AD=89=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ops/models/adhoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ops/models/adhoc.py b/apps/ops/models/adhoc.py index 1f322f944..82c6fa37e 100644 --- a/apps/ops/models/adhoc.py +++ b/apps/ops/models/adhoc.py @@ -229,7 +229,7 @@ class AdHoc(models.Model): history.result = raw history.summary = summary return raw, summary - except Exception as e: + except IndexError as e: return {}, {"dark": {"all": str(e)}, "contacted": []} finally: # f.close()