Skip to content

UnboundLocalError: cannot access local variable 'post' where it is not associated with a value #3504

@sentry

Description

@sentry

Sentry Issue: BOT-417

NotFound: 404 Not Found (error code: 10003): Unknown Channel
  File "bot/exts/help_channels/_channel.py", line 196, in maybe_archive_idle_post
    post = await get_or_fetch_channel(bot.instance, post_id)

UnboundLocalError: cannot access local variable 'post' where it is not associated with a value
  File "bot/exts/help_channels/_channel.py", line 198, in maybe_archive_idle_post
    log.trace(f"Not closing missing post #{post} ({post.id}).")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions