Handle GetStreamInfo returning None for suspended channels
This commit is contained in:
1 parent
8ee49bebf0
commit
d333c86598
1 file changed
+1
@@ -1633,6 +1633,7 @@ class Twitch:
|
|||||||
response_list: list[JsonType] = await coro
|
response_list: list[JsonType] = await coro
|
||||||
for response_json in response_list:
|
for response_json in response_list:
|
||||||
channel_data: JsonType = response_json["data"]["user"]
|
channel_data: JsonType = response_json["data"]["user"]
|
||||||
|
if channel_data is not None:
|
||||||
acl_streams_map[int(channel_data["id"])] = channel_data
|
acl_streams_map[int(channel_data["id"])] = channel_data
|
||||||
except Exception:
|
except Exception:
|
||||||
# asyncio.as_completed doesn't cancel tasks on errors
|
# asyncio.as_completed doesn't cancel tasks on errors
|
||||||
|
|||||||
Reference in new issue
Block a user