diff --git a/devine/core/config.py b/devine/core/config.py index 9f57ce0..2dd1f7c 100644 --- a/devine/core/config.py +++ b/devine/core/config.py @@ -74,9 +74,9 @@ class Config: # noinspection PyProtectedMember -try: - config = Config.from_yaml(Config._Directories.user_configs / Config._Filenames.root_config) -except FileNotFoundError: - config = Config() +config_path = Config._Directories.user_configs / Config._Filenames.root_config +if not config_path.is_file(): + config_path.write_text("") +config = Config.from_yaml(config_path) __ALL__ = (config,)