Skip to content

Commit

Permalink
Merge pull request #591 from cwendt94/fix_hockey_key_stat_player
Browse files Browse the repository at this point in the history
Hockey: Fix Key Error in Player Stats
  • Loading branch information
cwendt94 authored Oct 15, 2024
2 parents 1c62e80 + 955d2e3 commit 73d1ed8
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 73d1ed8

Please sign in to comment.