[Streams] Initialize all variables (#4687)

This commit is contained in:
Lui 2020-12-24 06:43:05 -08:00 committed by GitHub
parent 67e776a640
commit 1bdaa9d95e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -727,6 +727,8 @@ class Streams(commands.Cog):
for stream in self.streams: for stream in self.streams:
try: try:
try: try:
is_rerun = False
is_schedule = False
if stream.__class__.__name__ == "TwitchStream": if stream.__class__.__name__ == "TwitchStream":
await self.maybe_renew_twitch_bearer_token() await self.maybe_renew_twitch_bearer_token()
embed, is_rerun = await stream.is_online() embed, is_rerun = await stream.is_online()
@ -736,8 +738,6 @@ class Streams(commands.Cog):
else: else:
embed = await stream.is_online() embed = await stream.is_online()
is_rerun = False
is_schedule = False
except OfflineStream: except OfflineStream:
if not stream._messages_cache: if not stream._messages_cache:
continue continue