Commit a99d5609 authored by ibuler's avatar ibuler

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

parent 33b1de0d
...@@ -229,7 +229,7 @@ class AdHoc(models.Model): ...@@ -229,7 +229,7 @@ class AdHoc(models.Model):
history.result = raw history.result = raw
history.summary = summary history.summary = summary
return raw, summary return raw, summary
except Exception as e: except IndexError as e:
return {}, {"dark": {"all": str(e)}, "contacted": []} return {}, {"dark": {"all": str(e)}, "contacted": []}
finally: finally:
# f.close() # f.close()
......
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