KeyError: escape(device) #10148

Closed
opened 2025-12-29 21:27:32 +01:00 by adam · 0 comments
Owner

Originally created by @bogi788 on GitHub (Aug 28, 2024).

Originally assigned to: @arthanson on GitHub.

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: cf62178471/netbox/dcim/views.py (L3443) - it appears that fstring syntax is mixed with str.format syntax.

Originally created by @bogi788 on GitHub (Aug 28, 2024). Originally assigned to: @arthanson on GitHub. ### 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: https://github.com/netbox-community/netbox/blob/cf62178471d6117f6ca538142da04808e8456f91/netbox/dcim/views.py#L3443 - it appears that fstring syntax is mixed with str.format syntax.
adam added the type: bugstatus: acceptedseverity: medium labels 2025-12-29 21:27:32 +01:00
adam closed this issue 2025-12-29 21:27:32 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10148