From 0ff3e49eb6a9f8e10d8399bffb81f849a716d887 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 21 Feb 2024 12:10:57 -0300 Subject: [PATCH] Fix error handling in get_vertices and add build time to vertex --- src/backend/langflow/api/v1/chat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/langflow/api/v1/chat.py b/src/backend/langflow/api/v1/chat.py index d0a4fe0ac..ada9a4fa7 100644 --- a/src/backend/langflow/api/v1/chat.py +++ b/src/backend/langflow/api/v1/chat.py @@ -105,8 +105,7 @@ async def get_vertices( try: vertices = graph.sort_vertices(component_id) except Exception as exc: - logger.error(f"IN DEVELOPMENT: Error getting vertices: {exc}") - logger.exception(exc) + logger.error(exc) vertices = graph.sort_vertices() else: vertices = graph.sort_vertices() @@ -196,6 +195,7 @@ async def build_vertex( duration = format_elapsed_time(timedelta) result_dict.duration = duration result_dict.timedelta = timedelta + vertex.add_build_time(timedelta) return VertexBuildResponse( valid=valid,