Skip to content

Commit 1556f41

Browse files
committed
Fix Prediction top_predictors
1 parent 20c232c commit 1556f41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twitchio/models/predictions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def __init__(
189189
self.users: int | None = int(users) if users is not None else None
190190
channel_points = data.get("channel_points")
191191
self.channel_points: int | None = int(channel_points) if channel_points is not None else None
192-
self.top_predictors: list[Predictor] = [Predictor(d, http=http) for d in data.get("top_predictors", [])]
192+
self.top_predictors: list[Predictor] = [Predictor(d, http=http) for d in data.get("top_predictors") or []]
193193

194194
@property
195195
def color(self) -> str:

0 commit comments

Comments
 (0)