Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix errors appearing more than once.

comfyanonymousbb1223d83fe7
diff --git a/execution.py b/execution.py
index aafc86976..3ca551db6 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, "")