mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Streams] Remove stream alert if stream not found (#4939)
* Remove stream if not found * Address Jack's review.
This commit is contained in:
parent
9a7c178db5
commit
3c742e39d2
@ -778,6 +778,9 @@ class Streams(commands.Cog):
|
||||
|
||||
stream.messages.clear()
|
||||
await self.save_streams()
|
||||
except StreamNotFound:
|
||||
to_remove.append(stream)
|
||||
continue
|
||||
else:
|
||||
if stream.messages:
|
||||
continue
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user