diff --git a/socceraction/data/opta/parsers/ma3_json.py b/socceraction/data/opta/parsers/ma3_json.py index df9be4c6..bb7008a9 100644 --- a/socceraction/data/opta/parsers/ma3_json.py +++ b/socceraction/data/opta/parsers/ma3_json.py @@ -92,7 +92,7 @@ def extract_games(self) -> Dict[str, Dict[str, Any]]: game_id=game_id, season_id=assertget(season, "id"), competition_id=assertget(competition, "id"), - game_day=int(assertget(match_info, "week")), + game_day=int(match_info["week"]) if "week" in match_info else None, game_date=datetime.strptime(game_datetime, "%Y-%m-%dT%H:%M:%S"), home_team_id=self._extract_team_id(contestant, "home"), away_team_id=self._extract_team_id(contestant, "away"),