diff --git a/espn_api/football/box_player.py b/espn_api/football/box_player.py index 798c8247..e2c7eae9 100644 --- a/espn_api/football/box_player.py +++ b/espn_api/football/box_player.py @@ -23,7 +23,7 @@ def __init__(self, data, pro_schedule, positional_rankings, week): self.pro_opponent = PRO_TEAM_MAP[opp_id] self.pro_pos_rank = positional_rankings[posId][str(opp_id)] if str(opp_id) in positional_rankings[posId] else 0 - stats = self.stats.get(week) + stats = self.stats.get(week, {}) self.points = stats.get('points', 0) self.points_breakdown = stats.get('breakdown', 0) self.projected_points = stats.get('projected_points', 0)