[Bugfix] 修复运行测试硬件等报错的bug

pull/2155/head
ibuler 2018-12-12 18:00:21 +08:00
parent 33b1de0d85
commit a99d5609fa
1 changed files with 1 additions and 1 deletions

View File

@ -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()