feat: ensure spaces are valid identifiers

This commit is contained in:
Matthias
2025-11-05 21:05:15 +01:00
parent 68dea691c2
commit 1328df772b
2 changed files with 19 additions and 0 deletions

View File

@@ -192,6 +192,10 @@ def detect_all_parameters(
raise OperationalException(
f"Conflicting parameter space for {attr_name}: {auto_category} vs {attr.category}."
)
if attr.category in ("all", "default") or attr.category.isidentifier() is False:
raise OperationalException(
f"'{attr.category}' is not a valid space. Parameter: {attr_name}."
)
attr.name = attr_name
result[attr.category][attr_name] = attr
return result