Handle GetStreamInfo returning None for suspended channels
This commit is contained in:
1 parent
8ee49bebf0
commit
d333c86598
1 file changed
+2
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user