diff --git a/cli.py b/cli.py index 0739a0c2..0557e032 100755 --- a/cli.py +++ b/cli.py @@ -731,7 +731,7 @@ def save_config_value(key_path: str, value: any) -> bool: keys = key_path.split('.') current = config for key in keys[:-1]: - if key not in current: + if key not in current or not isinstance(current[key], dict): current[key] = {} current = current[key] current[keys[-1]] = value