1
0
mirror of https://github.com/devine-dl/devine.git synced 2025-06-05 08:59:44 +00:00

Fix startup crash if config does not yet exist

Fixes .
This commit is contained in:
rlaphoenix 2023-02-07 20:20:40 +00:00
parent 5301ac2924
commit 76671495b4

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