From 527fa97dc812f306520b4c178be1dc6b5ec2ca0c Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Wed, 11 Mar 2026 15:17:34 +0100 Subject: [PATCH] fix: prevent substitutions=none if yaml is empty --- server/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/interface.py b/server/interface.py index 595573e..31e4d40 100755 --- a/server/interface.py +++ b/server/interface.py @@ -449,7 +449,7 @@ def create_app(): app.config["SUBSTITUTIONS"] = {} if os.path.isfile(substitution_config_file): with open(substitution_config_file) as f: - app.config["SUBSTITUTIONS"] = yaml.safe_load(f) + app.config["SUBSTITUTIONS"] = yaml.safe_load(f) or {} print("Loaded subs:", substitution_config_file, app.config["SUBSTITUTIONS"], file=sys.stderr)