fix: load config from empty config file

This commit is contained in:
ed 2025-05-26 16:21:26 +08:00
parent b8e57aeff4
commit ed144177bf

View file

@ -17,7 +17,7 @@ def get_project_dir():
def read_config(config_path):
with open(config_path, "r", encoding="utf-8") as file:
config = yaml.safe_load(file)
return config
return config or {}
def load_config():