forked from phoenix/litellm-mirror
fix linting errors when adding a new team member
This commit is contained in:
parent
0ad5f58930
commit
20840eaad3
2 changed files with 6 additions and 1 deletions
|
@ -571,6 +571,11 @@ async def team_member_add(
|
|||
|
||||
await asyncio.gather(*tasks)
|
||||
|
||||
# Check if updated_team is None
|
||||
if updated_team is None:
|
||||
raise HTTPException(
|
||||
status_code=404, detail={"error": f"Team with id {data.team_id} not found"}
|
||||
)
|
||||
return TeamAddMemberResponse(
|
||||
**updated_team.model_dump(),
|
||||
updated_users=updated_users,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue