From bb1223d83fe7fba6bbe80dea22ff8f1044b709d9 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Mon, 27 Mar 2023 02:16:58 -0400 Subject: [PATCH] Fix errors appearing more than once. --- execution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/execution.py b/execution.py index aafc8697..3ca551db 100644 --- a/execution.py +++ b/execution.py @@ -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, "")