diff --git a/espn_api/hockey/player.py b/espn_api/hockey/player.py index dd977ea7..99a53efe 100644 --- a/espn_api/hockey/player.py +++ b/espn_api/hockey/player.py @@ -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)