Skip to content

Page error on config render with empty output #19496

@Omripresent

Description

@Omripresent

Deployment Type

Self-hosted

NetBox Version

v4.2.6, v4.3.1

Python Version

3.12

Steps to Reproduce

  1. Create a config template with the following content
    {# empty template test #}
    
  2. Create a device and attach the template created in step 1
  3. Open the device config render tab

Expected Behavior

A config render page with no output

Observed Behavior

Django template render error due to attempting to translate a None assigned variable

<class 'AttributeError'>

'NoneType' object has no attribute 'replace'

Python version: 3.12.5
NetBox version: 4.2.6
Plugins: 
  netbox_attachments: 7.2.0
  netbox_dns: 1.2.1
  netbox_inventory: 2.3.0

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions