Initilize error_message to empty string

Update template branching for empty template render output
This commit is contained in:
Omri Abu
2025-05-16 14:46:43 -04:00
parent cbe14b76c0
commit e6d364b250
2 changed files with 6 additions and 2 deletions

View File

@@ -966,7 +966,7 @@ class ObjectRenderConfigView(generic.ObjectView):
# Render the config template
rendered_config = None
error_message = None
error_message = ''
if config_template := instance.get_config_template():
try:
rendered_config = config_template.render(context=context_data)