From 3fb1cc7f1cf9ada17733d72d0f25da2a4af01f3f Mon Sep 17 00:00:00 2001 From: Versun Date: Sat, 28 Dec 2024 20:37:30 +0800 Subject: [PATCH] fix: correct return value in _load_config_file This change modifies the return statement in the _load_config_file function to return the parsed configuration instead of an empty dictionary, ensuring that the function behaves as expected when a configuration file is created. --- aicmt/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aicmt/config.py b/aicmt/config.py index 219c19d..341b7fa 100644 --- a/aicmt/config.py +++ b/aicmt/config.py @@ -186,8 +186,7 @@ def _load_config_file() -> Dict[str, Any]: ) CLIInterface.display_warning(f"Auto created configuration file in {xdg_config_path}\n" "Please check and update your configuration file.") - - return {} + return _parse_config_file(xdg_config_path) # if not global_config_path.exists() and not local_config_path.exists() and not xdg_config_path.exists(): # CLIInterface.display_error(