mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Send execution_error message on websocket on execution exception.
This commit is contained in:
parent
f7c0f75d1f
commit
602095f614
@ -185,7 +185,11 @@ class PromptExecutor:
|
|||||||
if isinstance(e, comfy.model_management.InterruptProcessingException):
|
if isinstance(e, comfy.model_management.InterruptProcessingException):
|
||||||
print("Processing interrupted")
|
print("Processing interrupted")
|
||||||
else:
|
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 = []
|
to_delete = []
|
||||||
for o in self.outputs:
|
for o in self.outputs:
|
||||||
if (o not in current_outputs) and (o not in executed):
|
if (o not in current_outputs) and (o not in executed):
|
||||||
|
Loading…
Reference in New Issue
Block a user