From f990aeea38aa89e0ca168b6267f70d8fa9aadd2c Mon Sep 17 00:00:00 2001 From: DevilXD Date: Mon, 16 Oct 2023 20:53:24 +0200 Subject: [PATCH] Handle a case where AvailableDrops returns no campaigns --- channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channel.py b/channel.py index 6b30c3a..b36741d 100644 --- a/channel.py +++ b/channel.py @@ -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