Skip to content

KeyError: escape(device) #17286

Closed
Closed
@bogi788

Description

@bogi788

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.

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions