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
48fcc5b7
Commit
48fcc5b7
authored
May 22, 2023
by
comfyanonymous
Browse files
Parsing error crash.
parent
bfb13f5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
execution.py
execution.py
+5
-3
No files found.
execution.py
View file @
48fcc5b7
...
...
@@ -374,6 +374,7 @@ def validate_prompt(prompt):
print
(
traceback
.
format_exc
())
valid
=
False
reason
=
"Parsing error"
node_id
=
None
if
valid
==
True
:
good_outputs
.
add
(
o
)
...
...
@@ -381,9 +382,10 @@ def validate_prompt(prompt):
print
(
"Failed to validate prompt for output {} {}"
.
format
(
o
,
reason
))
print
(
"output will be ignored"
)
errors
+=
[(
o
,
reason
)]
if
node_id
not
in
node_errors
:
node_errors
[
node_id
]
=
{
"message"
:
reason
,
"dependent_outputs"
:
[]}
node_errors
[
node_id
][
"dependent_outputs"
].
append
(
o
)
if
node_id
is
not
None
:
if
node_id
not
in
node_errors
:
node_errors
[
node_id
]
=
{
"message"
:
reason
,
"dependent_outputs"
:
[]}
node_errors
[
node_id
][
"dependent_outputs"
].
append
(
o
)
if
len
(
good_outputs
)
==
0
:
errors_list
=
"
\n
"
.
join
(
set
(
map
(
lambda
a
:
"{}"
.
format
(
a
[
1
]),
errors
)))
...
...
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