diff options
author | Maxim Devaev <[email protected]> | 2022-10-07 14:10:49 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-10-07 14:10:49 +0300 |
commit | 16d9c3815f5bb5ba98f0923efc9f0fad8e2f48a2 (patch) | |
tree | 8bbe97e9d04aca5ec2bfb8a08d598df3969bbd4c /kvmd/yamlconf | |
parent | c402aeab4dab7da3e3cef5aee2d79ae31046d9df (diff) |
lint fix
Diffstat (limited to 'kvmd/yamlconf')
-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})") |