From ce80e26c503910c452b254046b9f3dff0883012f Mon Sep 17 00:00:00 2001 From: ogabrielluiz Date: Fri, 14 Jun 2024 16:40:47 -0300 Subject: [PATCH] refactor: Ignore missing inputs in Component class --- src/backend/base/langflow/custom/custom_component/component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/base/langflow/custom/custom_component/component.py b/src/backend/base/langflow/custom/custom_component/component.py index 29b9e9020..1bbc6fa0a 100644 --- a/src/backend/base/langflow/custom/custom_component/component.py +++ b/src/backend/base/langflow/custom/custom_component/component.py @@ -60,7 +60,7 @@ class Component(CustomComponent): # Params keys are the `name` attribute of the Input objects for key, value in params.items(): if key not in self._inputs: - raise ValueError(f"Input {key} not found in arguments") + continue input_ = self._inputs[key] # BaseInputMixin has a `validate_assignment=True` input_.value = value