Skip to content

Commit 98a6477

Browse files
Taaku18Copilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]> Signed-off-by: Taku <[email protected]>
1 parent 8f24452 commit 98a6477

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
@@ -1802,8 +1802,8 @@ async def contact(
18021802
self.bot.threads.cache[thread.id] = thread
18031803
try:
18041804
await msg.delete(delay=10)
1805-
except (discord.Forbidden, discord.NotFound):
1806-
pass
1805+
except (discord.Forbidden, discord.NotFound) as e:
1806+
logger.debug(f"Failed to delete message (likely already deleted or lacking permissions): {e}")
18071807
# Don't try to create a new thread - we just unsnoozed existing ones
18081808
return
18091809

0 commit comments

Comments
 (0)