[Streams] Ignore lack of rerun info where not available (#2748)

This commit is contained in:
Ryan 2019-05-31 16:41:23 -04:00 committed by Michael H
parent 2e58922d01
commit e956e6e320

View File

@ -547,7 +547,11 @@ class Streams(commands.Cog):
for stream in self.streams:
with contextlib.suppress(Exception):
try:
embed, is_rerun = await stream.is_online()
if stream.__class__.__name__ == "TwitchStream":
embed, is_rerun = await stream.is_online()
else:
embed = await stream.is_online()
is_rerun = False
except OfflineStream:
if not stream._messages_cache:
continue