Skip to content

Commit ff0273e

Browse files
authored
Merge pull request #103 from safoyeth/fix-standings
Fix KeyError : 'eliminationNumber' in standings_data
2 parents 1614bf6 + 9aeda0f commit ff0273e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

statsapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ def standings_data(
14901490
"wc_rank": x.get("wildCardRank", "-"),
14911491
"wc_gb": x.get("wildCardGamesBack", "-"),
14921492
"wc_elim_num": x.get("wildCardEliminationNumber", "-"),
1493-
"elim_num": x["eliminationNumber"],
1493+
"elim_num": x.get("eliminationNumber", "-"),
14941494
"team_id": x["team"]["id"],
14951495
"league_rank": x["leagueRank"],
14961496
"sport_rank": x["sportRank"],

0 commit comments

Comments
 (0)