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

KeyError: escape(device) #17286

Closed
bogi788 opened this issue Aug 28, 2024 · 0 comments · Fixed by #17287
Closed

KeyError: escape(device) #17286

bogi788 opened this issue Aug 28, 2024 · 0 comments · Fixed by #17287
Assignees
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@bogi788
Copy link

bogi788 commented Aug 28, 2024

Deployment Type

Self-hosted

NetBox Version

v4.0.9

Python Version

3.11

Steps to Reproduce

Try to assign a new member to any virtual chassis.

Expected Behavior

Assigning should complete without raising an Exception when setting the success message.

Observed Behavior

Submitting the form results in a KeyError, likely due to this line:

_('Added member <a href="{url}">{escape(device)}</a>').format(url=device.get_absolute_url())
- it appears that fstring syntax is mixed with str.format syntax.

@bogi788 bogi788 added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Aug 28, 2024
@arthanson arthanson self-assigned this Aug 28, 2024
@arthanson arthanson added status: accepted This issue has been accepted for implementation severity: medium Results in substantial degraded or broken functionality for specfic workflows and removed status: needs triage This issue is awaiting triage by a maintainer labels Aug 28, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants