Skip to content

Commit

Permalink
Update src/routers/scene_router.py
Browse files Browse the repository at this point in the history
Co-authored-by: Filip Szweda <68189467+filip-szweda@users.noreply.github.com>
  • Loading branch information
Krystian030 and filip-szweda authored Oct 24, 2023
1 parent 8edbd95 commit 978225b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routers/scene_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async def add(r: AddObjectDTO, background_tasks: BackgroundTasks):
raise HTTPException(status_code=400, detail={"message": f"Player with id: {object.owner} does not exist"})

if player.add_agent_from_object(object) is False:
logger.warning(f"Player with id: {object.owner} cannot add agent")
logger.error(f"Player with id: {object.owner} cannot add agent")
cost = player.calculate_slot_cost()
raise HTTPException(
status_code=400,
Expand Down

0 comments on commit 978225b

Please sign in to comment.