From a534ac761912e9af7d9a991b801ed3bd4b531ec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8Dtalo=20Johnny?= Date: Tue, 16 Jul 2024 11:24:08 -0300 Subject: [PATCH] chore: make error messages more generic (#2726) * chore: make error messages more generic * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- src/backend/base/langflow/custom/utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/backend/base/langflow/custom/utils.py b/src/backend/base/langflow/custom/utils.py index 1cb7d085c..bf3792061 100644 --- a/src/backend/base/langflow/custom/utils.py +++ b/src/backend/base/langflow/custom/utils.py @@ -391,11 +391,7 @@ def build_custom_component_template( raise HTTPException( status_code=400, detail={ - "error": ( - "Please check if you are importing Component correctly." - " It should be `from langflow.custom import Component`" - ), - "traceback": traceback.format_exc(), + "error": ("Please check if you are importing Component correctly."), }, ) if "inputs" in custom_component.template_config: