From 80e58eee9ee186952a3f6cf147f7456166544d4f Mon Sep 17 00:00:00 2001 From: HEnquist Date: Thu, 10 Oct 2024 20:44:49 +0200 Subject: [PATCH] Check if ramp_time exists before trying to remove it --- backend/legacy_config_import.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/legacy_config_import.py b/backend/legacy_config_import.py index da7179d..5cb02cd 100644 --- a/backend/legacy_config_import.py +++ b/backend/legacy_config_import.py @@ -26,7 +26,8 @@ def _modify_loundness_filters(config): if "filters" in config: for name, params in config["filters"].items(): if params["type"] == "Loudness": - del params["parameters"]["ramp_time"] + if "ramp_time" in params["parameters"]: + del params["parameters"]["ramp_time"] params["parameters"]["fader"] = "Main" params["parameters"]["attenuate_mid"] = False