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>
This commit is contained in:
Ítalo Johnny 2024-07-16 11:24:08 -03:00 committed by GitHub
commit a534ac7619
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: