mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
make variables access robuster (#3406)
### What problem does this PR solve? ### Type of change - [x] Performance Improvement
This commit is contained in:
@ -399,7 +399,7 @@ class ComponentBase(ABC):
|
||||
self._param.check()
|
||||
|
||||
def get_dependent_components(self):
|
||||
cpnts = [para["component_id"] for para in self._param.query if para["component_id"].lower().find("answer") < 0]
|
||||
cpnts = [para["component_id"] for para in self._param.query if para.get("component_id") and para["component_id"].lower().find("answer") < 0]
|
||||
return cpnts
|
||||
|
||||
def run(self, history, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user