diff options
| author | 2020-07-30 14:10:16 +0200 | |
|---|---|---|
| committer | 2020-07-30 14:10:16 +0200 | |
| commit | 5da19892c78f31096b489341ba9857653fa66a64 (patch) | |
| tree | 28d338e5b1f2ee3b4f585c48cc20bf2f8d54257f | |
| parent | Merge pull request #1071 from python-discord/no_mod_alert_ping_for_dms (diff) | |
| parent | Fix 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.py | 2 |
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) |