Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
602095f6
Commit
602095f6
authored
May 10, 2023
by
comfyanonymous
Browse files
Send execution_error message on websocket on execution exception.
parent
f7c0f75d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
execution.py
execution.py
+5
-1
No files found.
execution.py
View file @
602095f6
...
@@ -185,7 +185,11 @@ class PromptExecutor:
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment