From 69955d4af9a7f7769c87bdda08d058d7f2f3d10f Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Tue, 26 Nov 2024 14:17:43 +0530 Subject: [PATCH] fix(team_endpoints.py): skip invalid team object. don't fail `/team/list` call Causes downstream errors if ui just fails to load team list --- litellm/proxy/management_endpoints/team_endpoints.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/management_endpoints/team_endpoints.py b/litellm/proxy/management_endpoints/team_endpoints.py index 575e711198f4..e8f4ac94a2d2 100644 --- a/litellm/proxy/management_endpoints/team_endpoints.py +++ b/litellm/proxy/management_endpoints/team_endpoints.py @@ -1366,6 +1366,7 @@ async def list_team( """.format( team.team_id, team.model_dump(), str(e) ) - raise HTTPException(status_code=400, detail={"error": team_exception}) + verbose_proxy_logger.exception(team_exception) + continue return returned_responses