From f3af0b584e1f70283c57611f6e6cc906ba86c2b9 Mon Sep 17 00:00:00 2001 From: italojohnny Date: Tue, 16 Jul 2024 10:53:44 -0300 Subject: [PATCH 1/2] chore: make error messages more generic --- src/backend/base/langflow/custom/utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/backend/base/langflow/custom/utils.py b/src/backend/base/langflow/custom/utils.py index 1cb7d085c214..d4b7e12c8235 100644 --- a/src/backend/base/langflow/custom/utils.py +++ b/src/backend/base/langflow/custom/utils.py @@ -393,9 +393,7 @@ def build_custom_component_template( detail={ "error": ( "Please check if you are importing Component correctly." - " It should be `from langflow.custom import Component`" ), - "traceback": traceback.format_exc(), }, ) if "inputs" in custom_component.template_config: From 11d200dbd86957baba2ff3cfcf98fe5c153de46a Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 16 Jul 2024 14:10:26 +0000 Subject: [PATCH 2/2] [autofix.ci] apply automated fixes --- src/backend/base/langflow/custom/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backend/base/langflow/custom/utils.py b/src/backend/base/langflow/custom/utils.py index d4b7e12c8235..bf3792061138 100644 --- a/src/backend/base/langflow/custom/utils.py +++ b/src/backend/base/langflow/custom/utils.py @@ -391,9 +391,7 @@ def build_custom_component_template( raise HTTPException( status_code=400, detail={ - "error": ( - "Please check if you are importing Component correctly." - ), + "error": ("Please check if you are importing Component correctly."), }, ) if "inputs" in custom_component.template_config: