Skip to content
Snippets Groups Projects
Commit bf70afdc authored by Florian Schröder's avatar Florian Schröder
Browse files

Handle None client in game connection request

The update modifies the get_participant_game_connection method in the study server. Now, the method uses "Test" as the default host if the request client is None. This ensures that the functionality will not break when dealing with test or invalid client requests.
parent 4b7855cc
No related branches found
No related tags found
1 merge request!90Resolve "Complete Cooperative Cousine Terminal Command"
Pipeline #49699 passed
This commit is part of merge request !90. Comments created here will be created in the context of that merge request.
...@@ -654,7 +654,7 @@ async def get_game_connection( ...@@ -654,7 +654,7 @@ async def get_game_connection(
""" """
player_info, level_info = study_manager.get_participant_game_connection( player_info, level_info = study_manager.get_participant_game_connection(
participant_id, request.client.host participant_id, request.client.host if request.client is not None else "Test"
) )
return {"player_info": player_info, "level_info": level_info} return {"player_info": player_info, "level_info": level_info}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment