Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Make the app not run if the database has not been specified in config
Browse files Browse the repository at this point in the history
  • Loading branch information
tdemin committed Jun 11, 2019
1 parent ac6fb63 commit 12765c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions project_amber/config.py
Expand Up @@ -36,3 +36,7 @@
for entry in config:
if entry in loadedConfig:
config[entry] = loadedConfig[entry]

if config["database"] == "":
print("No database specified. Exiting.")
exit(1)

0 comments on commit 12765c8

Please sign in to comment.