forked from gooberinc/goober
added warning for missing settings
This commit is contained in:
parent
068829702e
commit
97cdd7be79
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,9 @@ class Settings:
|
|||
self.path: str = os.path.join(".", "settings", "settings.json")
|
||||
|
||||
if not os.path.exists(self.path):
|
||||
logger.critical(
|
||||
f"Missing settings file from {self.path}! Did you forget to copy settings.example.json?"
|
||||
)
|
||||
raise ValueError("settings.json file does not exist!")
|
||||
|
||||
self.settings: SettingsType
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue