Skip to content

Commit f9a8cf3

Browse files
authored
Merge pull request #104 from safoyeth/fix-standings
Fix KeyError: 'sportRank'
2 parents 35a3e4f + 7280f85 commit f9a8cf3

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
@@ -1500,7 +1500,7 @@ def standings_data(
15001500
"elim_num": x.get("eliminationNumber", "-"),
15011501
"team_id": x["team"]["id"],
15021502
"league_rank": x["leagueRank"],
1503-
"sport_rank": x["sportRank"],
1503+
"sport_rank": x.get("sportRank", "-"),
15041504
}
15051505
divisions[x["team"]["division"]["id"]]["teams"].append(team)
15061506

0 commit comments

Comments
 (0)