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)]
|
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, "")
|
||||||
|
|
Loading…
Reference in New Issue