fix: localize empty important package lists

This commit is contained in:
VAIO73
2026-09-17 13:17:08 +02:00
parent 661b944e0c
commit 82c3a49f4c
3 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -1831,7 +1831,8 @@ def render_template(event_type: str, data: Dict[str, Any],
variables[f'{_byte_key}_human'] = _format_bytes_human(data[_byte_key])
# Ensure important_list is never blank (fallback to localized "none")
if not variables.get('important_list', '').strip():
important_list = str(variables.get('important_list', '')).strip()
if not important_list or important_list.casefold() == 'none':
variables['important_list'] = runtime_message('fallback.none', language)
# Derive the affected object's display name for titles that use it.