diff options
Diffstat (limited to 'kvmd/yamlconf/__init__.py')
-rw-r--r-- | kvmd/yamlconf/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/yamlconf/__init__.py b/kvmd/yamlconf/__init__.py index bfda9b78..99b67255 100644 --- a/kvmd/yamlconf/__init__.py +++ b/kvmd/yamlconf/__init__.py @@ -46,7 +46,7 @@ def build_raw_from_options(options: List[str]) -> Dict[str, Any]: raise ConfigError("No value for key %r" % (key)) section = raw - subs = list(map(str.strip, key.split("/"))) + subs = list(filter(None, map(str.strip, key.split("/")))) for sub in subs[:-1]: section.setdefault(sub, {}) section = section[sub] |