Handle a case where AvailableDrops returns no campaigns

This commit is contained in:
DevilXD committed 2023-10-16 20:53:24 +02:00
1 parent 163a056b33
commit f990aeea38
1 file changed
+1 -1
+1 -1
View File
@@ -261,7 +261,7 @@ class Channel:
) )
stream.drops_enabled = any( stream.drops_enabled = any(
bool(c["timeBasedDrops"]) bool(c["timeBasedDrops"])
for c in available_drops["data"]["channel"]["viewerDropCampaigns"] for c in (available_drops["data"]["channel"]["viewerDropCampaigns"] or [])
) )
return stream return stream