Skip to content

Commit 00830a5

Browse files
Taaku18Copilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Taku <45324516+Taaku18@users.noreply.github.com>
1 parent 98a6477 commit 00830a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cogs/modmail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,8 +1650,8 @@ async def note_persistent(self, ctx, *, msg: str = ""):
16501650
await self.bot.add_reaction(ctx.message, sent_emoji)
16511651
try:
16521652
await ctx.message.delete(delay=3)
1653-
except (discord.Forbidden, discord.NotFound):
1654-
pass
1653+
except (discord.Forbidden, discord.NotFound) as e:
1654+
logger.debug(f"Failed to delete note command message: {e}")
16551655

16561656
@commands.command()
16571657
@checks.has_permissions(PermissionLevel.SUPPORTER)

0 commit comments

Comments
 (0)