Skip to content

Commit

Permalink
fix(team_endpoints.py): skip invalid team object. don't fail `/team/l…
Browse files Browse the repository at this point in the history
…ist` call

Causes downstream errors if ui just fails to load team list
  • Loading branch information
krrishdholakia committed Nov 26, 2024
1 parent 7947248 commit 69955d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion litellm/proxy/management_endpoints/team_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 69955d4

Please sign in to comment.