Fix logger exception in custom_component_update and remove duplicate import statement

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-23 18:52:11 -03:00
commit 32e38e344e
2 changed files with 1 additions and 1 deletions

View file

@ -310,4 +310,5 @@ async def custom_component_update(
return component_node
except Exception as exc:
logger.exception(exc)
raise HTTPException(status_code=400, detail=str(exc)) from exc

View file

@ -11,7 +11,6 @@ from langflow.graph.vertex.base import Vertex
from langflow.interface.utils import extract_input_variables_from_prompt
from langflow.schema import Record
from langflow.schema.schema import INPUT_FIELD_NAME
from langflow.schema.schema import INPUT_FIELD_NAME
from langflow.services.monitor.utils import log_vertex_build
from langflow.utils.schemas import ChatOutputResponse
from langflow.utils.util import unescape_string