🚑 Catching bug in save-quiz

This commit is contained in:
Mawoka
2023-02-17 12:19:49 +01:00
parent ea327d3628
commit 7ac14facc3
+1 -1
View File
@@ -18,7 +18,7 @@ async def save_quiz_to_storage(game_pin: str):
redis_res = await redis.get(f"game_session:{game_pin}:{i}")
try:
answers.append(json.loads(redis_res))
except ValidationError:
except (ValidationError, TypeError):
answers.append([])
player_scores = await redis.hgetall(f"game_session:{game_pin}:player_scores")
custom_field_data = await redis.hgetall(f"game:{game_pin}:players:custom_fields")