aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/help_channels.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py
index 1f87c3e39..5d4346000 100644
--- a/bot/cogs/help_channels.py
+++ b/bot/cogs/help_channels.py
@@ -701,6 +701,8 @@ class HelpChannels(commands.Cog):
await message.pin()
except discord.NotFound:
log.info(f"Pinning message {message.id} ({channel}) failed because message got deleted.")
+ except discord.HTTPException as e:
+ log.info(f"Pinning message {message.id} ({channel.id}) failed with code {e.code}", exc_info=e)
else:
await self.question_messages.set(channel.id, message.id)