mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Fix errors appearing more than once.
This commit is contained in:
parent
3444ffff3b
commit
bb1223d83f
@ -281,7 +281,7 @@ def validate_prompt(prompt):
|
||||
errors += [(o, reason)]
|
||||
|
||||
if len(good_outputs) == 0:
|
||||
errors_list = "\n".join(map(lambda a: "{}".format(a[1]), errors))
|
||||
errors_list = "\n".join(set(map(lambda a: "{}".format(a[1]), errors)))
|
||||
return (False, "Prompt has no properly connected outputs\n {}".format(errors_list))
|
||||
|
||||
return (True, "")
|
||||
|
Loading…
Reference in New Issue
Block a user