Handle GetStreamInfo returning None for suspended channels

This commit is contained in:
DevilXD committed 2024-09-21 10:12:44 +02:00
1 parent 8ee49bebf0
commit d333c86598
1 file changed
+2 -1
+2 -1
View File
@@ -1633,7 +1633,8 @@ class Twitch:
response_list: list[JsonType] = await coro
for response_json in response_list:
channel_data: JsonType = response_json["data"]["user"]
acl_streams_map[int(channel_data["id"])] = channel_data
if channel_data is not None:
acl_streams_map[int(channel_data["id"])] = channel_data
except Exception:
# asyncio.as_completed doesn't cancel tasks on errors
for task in stream_gql_tasks: