diff options
Diffstat (limited to 'kvmd/yamlconf/__init__.py')
-rw-r--r-- | kvmd/yamlconf/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kvmd/yamlconf/__init__.py b/kvmd/yamlconf/__init__.py index faf8fa63..ced45b7c 100644 --- a/kvmd/yamlconf/__init__.py +++ b/kvmd/yamlconf/__init__.py @@ -37,6 +37,7 @@ class ConfigError(ValueError): def build_raw_from_options(options: list[str]) -> dict[str, Any]: raw: dict[str, Any] = {} for option in options: + key: str (key, value) = (option.split("=", 1) + [None])[:2] # type: ignore if len(key.strip()) == 0: raise ConfigError(f"Empty option key (required 'key=value' instead of {option!r})") |