Add insurance policy

This commit is contained in:
Ivan Habunek 2023-12-12 10:11:36 +01:00
parent c7e01c77f2
commit a0caa88ffe
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,10 @@ def make_config(path):
def load_config():
# Just to prevent accidentally running tests on production
if os.environ.get("TOOT_TESTING"):
raise Exception("Tests should not access the config file!")
path = get_config_file_path()
if not os.path.exists(path):