Merge branch 'dev' into fix_group_graph

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-26 04:43:32 -07:00 committed by GitHub
commit 9923f51abd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -96,7 +96,7 @@ class CustomComponent(BaseComponent):
def stop(self, output_name: str | None = None):
if not output_name and self.vertex and len(self.vertex.outputs) == 1:
output_name = self.vertex.outputs[0]["name"]
else:
elif not output_name:
raise ValueError("You must specify an output name to call stop")
if not self.vertex:
raise ValueError("Vertex is not set")