Skip to content

Commit

Permalink
Hockey: Fix Key Error in Player Stats
Browse files Browse the repository at this point in the history
  • Loading branch information
cwendt94 committed Oct 15, 2024
1 parent 8e131e7 commit 955d2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espn_api/hockey/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, data):
self.injured = player.get('injured', False)

for split in player.get('stats', []):
if split['stats']:
if split.get('stats'):
id = split['id']
stat_key = get_stat_key(id)

Expand Down

0 comments on commit 955d2e3

Please sign in to comment.