mirror of
https://github.com/ihabunek/toot
synced 2025-02-13 02:20:48 +01:00
Add insurance policy
This commit is contained in:
parent
c7e01c77f2
commit
a0caa88ffe
@ -39,6 +39,10 @@ def make_config(path):
|
|||||||
|
|
||||||
|
|
||||||
def load_config():
|
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()
|
path = get_config_file_path()
|
||||||
|
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user