aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/utilities/conversationstarters.py
diff options
context:
space:
mode:
authorGravatar Izan <[email protected]>2021-10-08 14:27:15 +0100
committerGravatar Izan <[email protected]>2021-10-08 14:27:15 +0100
commite01503a61015d483cd70e1e408c647b4054a927f (patch)
treed3115e795f3cf025557f1cb6d04c4c20c690a2e2 /bot/exts/utilities/conversationstarters.py
parentAdd handling for `discord.NotFound` when re-rolling / removing reaction (diff)
Remove unnecessary `else`
Diffstat (limited to 'bot/exts/utilities/conversationstarters.py')
-rw-r--r--bot/exts/utilities/conversationstarters.py14
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)