Skip to content

Commit

Permalink
fix: correct return value in _load_config_file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
versun committed Dec 28, 2024
1 parent dfdd595 commit 3fb1cc7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aicmt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3fb1cc7

Please sign in to comment.