Browse Source

Handle errors (like OOM) more gracefully

pull/2666/head
Jacob Segal 9 months ago
parent
commit
2c7145d525
  1. 2
      execution.py

2
execution.py

@ -435,7 +435,7 @@ class PromptExecutor:
"exception_type": error["exception_type"], "exception_type": error["exception_type"],
"traceback": error["traceback"], "traceback": error["traceback"],
"current_inputs": error["current_inputs"], "current_inputs": error["current_inputs"],
"current_outputs": error["current_outputs"], "current_outputs": list(current_outputs),
} }
self.add_message("execution_error", mes, broadcast=False) self.add_message("execution_error", mes, broadcast=False)

Loading…
Cancel
Save