refactor: Fix conditional check in Graph.mark_branch method
This commit is contained in:
parent
bb08ade8e5
commit
4eec44e9a8
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ from collections import defaultdict, deque
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
from typing import TYPE_CHECKING, Dict, Generator, List, Optional, Tuple, Type, Union
|
from typing import TYPE_CHECKING, Dict, Generator, List, Optional, Tuple, Type, Union
|
||||||
|
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
from langflow.exceptions.component import ComponentBuildException
|
from langflow.exceptions.component import ComponentBuildException
|
||||||
|
|
@ -489,7 +490,7 @@ class Graph:
|
||||||
# should be marked
|
# should be marked
|
||||||
if output_name:
|
if output_name:
|
||||||
edge = self.get_edge(vertex_id, child_id)
|
edge = self.get_edge(vertex_id, child_id)
|
||||||
if edge.source_handle.name != output_name:
|
if edge and edge.source_handle.name != output_name:
|
||||||
continue
|
continue
|
||||||
self.mark_branch(child_id, state)
|
self.mark_branch(child_id, state)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue