Skip to content

Commit

Permalink
Handle GetStreamInfo returning None for suspended channels
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilXD committed Sep 21, 2024
1 parent 8ee49be commit d333c86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1633,7 +1633,8 @@ async def bulk_check_online(self, channels: abc.Iterable[Channel]):
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:
Expand Down

0 comments on commit d333c86

Please sign in to comment.