Fix yet another startup crash when loading the config

This commit is contained in:
rlaphoenix 2023-02-28 06:30:12 +00:00
parent 3cfc679294
commit d427ec8472
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ class Config:
# noinspection PyProtectedMember
config_path = Config._Directories.user_configs / Config._Filenames.root_config
if not config_path.is_file():
Config._Directories.user_configs.mkdir(parents=True, exist_ok=True)
config_path.write_text("")
config = Config.from_yaml(config_path)