Fix startup crash if config does not yet exist

Fixes #14.
This commit is contained in:
rlaphoenix 2023-02-07 20:20:40 +00:00
parent 5301ac2924
commit 76671495b4
1 changed files with 4 additions and 1 deletions

View File

@ -74,6 +74,9 @@ class Config:
# noinspection PyProtectedMember # noinspection PyProtectedMember
try:
config = Config.from_yaml(Config._Directories.user_configs / Config._Filenames.root_config) config = Config.from_yaml(Config._Directories.user_configs / Config._Filenames.root_config)
except FileNotFoundError:
config = Config()
__ALL__ = (config,) __ALL__ = (config,)