aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-07-30 14:10:16 +0200
committerGravatar GitHub <[email protected]>2020-07-30 14:10:16 +0200
commit5da19892c78f31096b489341ba9857653fa66a64 (patch)
tree28d338e5b1f2ee3b4f585c48cc20bf2f8d54257f
parentMerge pull request #1071 from python-discord/no_mod_alert_ping_for_dms (diff)
parentFix channel moving incase `message.pin` fails (diff)
Merge pull request #1072 from python-discord/fix/message_pin
Fix channel moving incase `message.pin` fails
-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)