diff options
| author | 2021-10-08 14:27:15 +0100 | |
|---|---|---|
| committer | 2021-10-08 14:27:15 +0100 | |
| commit | e01503a61015d483cd70e1e408c647b4054a927f (patch) | |
| tree | d3115e795f3cf025557f1cb6d04c4c20c690a2e2 | |
| parent | Add handling for `discord.NotFound` when re-rolling / removing reaction (diff) | |
Remove unnecessary `else`
| -rw-r--r-- | bot/exts/utilities/conversationstarters.py | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/bot/exts/utilities/conversationstarters.py b/bot/exts/utilities/conversationstarters.py index fcb5f977..dcbfe4d5 100644 --- a/bot/exts/utilities/conversationstarters.py +++ b/bot/exts/utilities/conversationstarters.py @@ -99,14 +99,14 @@ class ConvoStarters(commands.Cog):                  with suppress(discord.NotFound):                      await message.clear_reaction("🔄")                  break -            else: -                try: -                    await message.edit(embed=self._build_topic_embed(message.channel.id)) -                except discord.NotFound: -                    break -                with suppress(discord.NotFound): -                    await message.remove_reaction(reaction, user) +            try: +                await message.edit(embed=self._build_topic_embed(message.channel.id)) +            except discord.NotFound: +                break + +            with suppress(discord.NotFound): +                await message.remove_reaction(reaction, user)      @commands.command()      @commands.cooldown(1, 60*2, commands.BucketType.channel) | 
