mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
appending error message to logs is skipped in action handler because is already done in terminal model
This commit is contained in:
parent
36aee8395b
commit
c83b939bff
1 changed files with 1 additions and 15 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue