mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
fix: load config from empty config file
This commit is contained in:
parent
b8e57aeff4
commit
ed144177bf
1 changed files with 1 additions and 1 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in a new issue