Skip to content

Commit 0080bbf

Browse files
committed
Fix AttributeError in maybe_archive_idle_post when post is missing
1 parent ec907f0 commit 0080bbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bot/exts/help_channels/_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ async def maybe_archive_idle_post(post_id: int, scheduler: scheduling.Scheduler)
195195
# Fetch the post again, to ensure we have the latest info
196196
post = await get_or_fetch_channel(bot.instance, post_id)
197197
except discord.HTTPException:
198-
log.trace(f"Not closing missing post #{post} ({post.id}).")
198+
log.trace(f"Not closing missing post #{post_id}.")
199199
return
200200

201201
if post.archived or post.locked:

0 commit comments

Comments
 (0)