[Modlog] Fix error when the bot can't read message history in the modlog channel (#4588)

This commit is contained in:
Flame442
2020-11-11 11:14:36 -05:00
committed by GitHub
parent a1a44bf1cc
commit a97cd64f48

View File

@@ -554,7 +554,7 @@ class Case:
if message is None:
try:
message = await mod_channel.fetch_message(message_id)
except (discord.NotFound, AttributeError):
except (discord.HTTPException, AttributeError):
message = None
else:
message = None