1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-06-23 06:25:26 +00:00

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

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):