mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-06-05 11:59:37 +00:00
Handle a case where AvailableDrops returns no campaigns
This commit is contained in:
@@ -261,7 +261,7 @@ class Channel:
|
||||
)
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user