mirror of
https://github.com/FAUSheppy/atlantis-event-dispatcher
synced 2026-04-26 15:32:28 +02:00
fix: prevent substitutions=none if yaml is empty
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user