Skip to content

Commit e3bfa48

Browse files
authored
add missing ["items"] subscript
1 parent 69ce2ae commit e3bfa48

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
@@ -1039,7 +1039,7 @@ def game_highlight_data(gamePk):
10391039
},
10401040
)
10411041
gameHighlights = r["dates"][0]["games"][0]["content"]["highlights"]["highlights"]
1042-
if not gameHighlights or len(gameHighlights) == 0:
1042+
if not gameHighlights or len(gameHighlights["items"]) == 0:
10431043
return []
10441044

10451045
unorderedHighlights = {}

0 commit comments

Comments
 (0)