From e3100bb64a58c3d15add9572222b6751516008d7 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 24 Apr 2019 11:02:41 +0100 Subject: [PATCH] Look at setting-specific part of export_settings to get `validate` function, not the whole dang dictionary --- modules/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/config.py b/modules/config.py index 80a490e8..ce91fb27 100644 --- a/modules/config.py +++ b/modules/config.py @@ -225,7 +225,7 @@ class Module(ModuleManager.BaseModule): def _config(self, export_settings, target, setting, value=None): if not value == None: - validation = export_settings.get("validate", lambda x: x) + validation = export_settings[setting].get("validate", lambda x: x) validated_value = validation(value) if not validated_value == None: target.set_setting(setting, validated_value)