Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Send execution_error message on websocket on execution exception.

comfyanonymous602095f61427
diff --git a/execution.py b/execution.py
index 3953fde3a..7ee038975 100644
--- a/execution.py
+++ b/execution.py
@@ -185,7 +185,11 @@ class PromptExecutor:
if isinstance(e, comfy.model_management.InterruptProcessingException):
print("Processing interrupted")
else:
- print(traceback.format_exc())
+ message = str(traceback.format_exc())
+ print(message)
+ if self.server.client_id is not None:
+ self.server.send_sync("execution_error", { "message": message }, self.server.client_id)
+
to_delete = []
for o in self.outputs:
if (o not in current_outputs) and (o not in executed):