Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"cannot access local variable 'tags'" error when editing flatpak updates #5503

Closed
kalev opened this issue Oct 5, 2023 · 1 comment · Fixed by #5504
Closed

"cannot access local variable 'tags'" error when editing flatpak updates #5503

kalev opened this issue Oct 5, 2023 · 1 comment · Fixed by #5504

Comments

@kalev
Copy link
Contributor

kalev commented Oct 5, 2023

When editing builds in a flatpak update, e.g. https://bodhi.fedoraproject.org/updates/FEDORA-FLATPAK-2023-38c6f050df/edit Bodhi seems to always show the following error and the update ends up in an "unpushed" state:

Builds : Unable to create update. cannot access local variable 'tags' where it is not associated with a value
@nirik
Copy link
Member

nirik commented Oct 5, 2023

FWIW, traceback is:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/bodhi/server/services/updates.py", line 574, in new_update
    result, _caveats = Update.edit(request, data)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/bodhi/server/models.py", line 2692, in edit
    for tag in tags:
               ^^^^
UnboundLocalError: cannot access local variable 'tags' where it is not associated with a value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants