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
276f8fce
"...composable_kernel_rocm.git" did not exist on "5ec6a912c074c2cd6afad9a33145507a3e1f255a"
Commit
276f8fce
authored
May 20, 2024
by
comfyanonymous
Browse files
Print error when node is missing.
parent
4bc18844
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
execution.py
execution.py
+12
-2
No files found.
execution.py
View file @
276f8fce
...
...
@@ -625,13 +625,23 @@ def validate_prompt(prompt):
if
'class_type'
not
in
prompt
[
x
]:
error
=
{
"type"
:
"invalid_prompt"
,
"message"
:
f
"Cannot execute due to a missing node"
,
"message"
:
f
"Cannot execute because a node is missing the class_type property."
,
"details"
:
f
"Node ID '#
{
x
}
'"
,
"extra_info"
:
{}
}
return
(
False
,
error
,
[],
[])
class_type
=
prompt
[
x
][
'class_type'
]
class_
=
nodes
.
NODE_CLASS_MAPPINGS
.
get
(
class_type
,
None
)
if
class_
is
None
:
error
=
{
"type"
:
"invalid_prompt"
,
"message"
:
f
"Cannot execute because node
{
class_type
}
does not exist."
,
"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
is
True
:
outputs
.
add
(
x
)
...
...
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