appending error message to logs is skipped in action handler because is already done in terminal model

This commit is contained in:
iLLiCiTiT 2020-06-19 15:32:38 +02:00
parent 36aee8395b
commit c83b939bff

View file

@ -984,22 +984,8 @@ class Window(QtWidgets.QDialog):
self._suspend_logs
)
error = result.get("error")
if error:
records = result.get("records") or []
if "error" in result:
action_state |= PluginActionStates.HasFailed
fname, line_no, func, exc = error.traceback
records.append({
"label": str(error),
"type": "error",
"filename": str(fname),
"lineno": str(line_no),
"func": str(func),
"traceback": error.formatted_traceback
})
result["records"] = records
plugin_item.setData(action_state, Roles.PluginActionProgressRole)