Fix errors appearing more than once.

This commit is contained in:
comfyanonymous 2023-03-27 02:16:58 -04:00
parent 3444ffff3b
commit bb1223d83f
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ def validate_prompt(prompt):
errors += [(o, reason)] errors += [(o, reason)]
if len(good_outputs) == 0: 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 (False, "Prompt has no properly connected outputs\n {}".format(errors_list))
return (True, "") return (True, "")