diff options
| -rw-r--r-- | bot/cogs/antispam.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bot/cogs/antispam.py b/bot/cogs/antispam.py index 0d3d0c4cc..6444b1f14 100644 --- a/bot/cogs/antispam.py +++ b/bot/cogs/antispam.py @@ -279,8 +279,11 @@ async def reupload_attachments( await attachment.save(buffer, use_cached=True) reupload: Message = await channel.send(file=File(buffer, filename=attachment.filename)) out.append(reupload.attachments[0].url) - except (HTTPException, NotFound): - log.warning(f"Tried to re-upload attachment {attachment.id}, but it has failed.") + except HTTPException: + log.warning( + f"Tried to re-upload attachment {attachment.filename} " + f"with ID {attachment.id} from message {message.id}, but it has failed." + ) return out |