Skip to content

Commit

Permalink
Handle a case where AvailableDrops returns no campaigns
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilXD committed Oct 16, 2023
1 parent 163a056 commit f990aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ async def get_stream(self) -> Stream | None:
)
stream.drops_enabled = any(
bool(c["timeBasedDrops"])
for c in available_drops["data"]["channel"]["viewerDropCampaigns"]
for c in (available_drops["data"]["channel"]["viewerDropCampaigns"] or [])
)
return stream

Expand Down

0 comments on commit f990aee

Please sign in to comment.