From 41a91f7da1d32237d754800732c75258d4ecc765 Mon Sep 17 00:00:00 2001 From: Unrud Date: Wed, 15 Jan 2020 03:19:44 +0100 Subject: [PATCH] Optional config source description --- radicale/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/config.py b/radicale/config.py index 1f4dd5b..f83a203 100644 --- a/radicale/config.py +++ b/radicale/config.py @@ -313,7 +313,7 @@ class Configuration: values[section][option] = schema[section][option]["value"] self.update(values, "default config", internal=True) - def update(self, config, source, internal=False): + def update(self, config, source=None, internal=False): """Update the configuration. ``config`` a dict of the format {SECTION: {OPTION: VALUE, ...}, ...}. @@ -327,6 +327,7 @@ class Configuration: ``internal`` allows updating "_internal" sections. """ + source = source or "unspecified config" new_values = {} for section in config: if (section not in self._schema or not internal and