Skip to content

Commit

Permalink
Ignore config file not existing on load
Browse files Browse the repository at this point in the history
  • Loading branch information
Numerlor committed Jan 13, 2022
1 parent f0bc80d commit c8f1d4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion auto_neutron/settings/toml_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ class TOMLSettings:

def __init__(self, file_path: Path):
self.path = file_path
self.load_from_file()
self._settings_dict = RecursiveDefaultDict()
with suppress(FileNotFoundError):
self.load_from_file()

# region value
@t.overload
Expand Down

0 comments on commit c8f1d4c

Please sign in to comment.