Skip to content

Commit 7280f85

Browse files
committed
Fix Key.Error: 'sportRank'
1 parent 9aeda0f commit 7280f85

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
@@ -1496,7 +1496,7 @@ def standings_data(
14961496
"elim_num": x.get("eliminationNumber", "-"),
14971497
"team_id": x["team"]["id"],
14981498
"league_rank": x["leagueRank"],
1499-
"sport_rank": x["sportRank"],
1499+
"sport_rank": x.get("sportRank", "-"),
15001500
}
15011501
divisions[x["team"]["division"]["id"]]["teams"].append(team)
15021502

0 commit comments

Comments
 (0)