diff --git a/src/routers/scene_router.py b/src/routers/scene_router.py index 6bcb039..ab8c247 100644 --- a/src/routers/scene_router.py +++ b/src/routers/scene_router.py @@ -146,6 +146,7 @@ async def get_ranking(): @router.get("/player-agents/{player_id}") async def get_agents_from_player_list(player_id: str): logger.debug(f"Starting to get agents for player {player_id}") + player = state.scene.get_player(player_id) if player is None: logger.warning(f"Player with id: {player_id} does not exist")