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
4bc18844
Unverified
Commit
4bc18844
authored
May 20, 2024
by
Dr.Lt.Data
Committed by
GitHub
May 20, 2024
Browse files
Provide a better error message when attempting to execute the workflow with a missing node. (#3517)
parent
09e069ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
execution.py
execution.py
+10
-1
No files found.
execution.py
View file @
4bc18844
...
...
@@ -622,8 +622,17 @@ def full_type_name(klass):
def
validate_prompt
(
prompt
):
outputs
=
set
()
for
x
in
prompt
:
if
'class_type'
not
in
prompt
[
x
]:
error
=
{
"type"
:
"invalid_prompt"
,
"message"
:
f
"Cannot execute due to a missing node"
,
"details"
:
f
"Node ID '#
{
x
}
'"
,
"extra_info"
:
{}
}
return
(
False
,
error
,
[],
[])
class_
=
nodes
.
NODE_CLASS_MAPPINGS
[
prompt
[
x
][
'class_type'
]]
if
hasattr
(
class_
,
'OUTPUT_NODE'
)
and
class_
.
OUTPUT_NODE
==
True
:
if
hasattr
(
class_
,
'OUTPUT_NODE'
)
and
class_
.
OUTPUT_NODE
is
True
:
outputs
.
add
(
x
)
if
len
(
outputs
)
==
0
:
...
...
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