diff --git a/src/tools/config.py b/src/tools/config.py index 3e2c5f33..4b97f6ac 100644 --- a/src/tools/config.py +++ b/src/tools/config.py @@ -111,4 +111,9 @@ def getConfig(config, section, name, default=None): raise exceptions.ParsingError(u"Error while parsing data: {}".format(e)) if not isinstance(value, dict): raise exceptions.ParsingError(u"{name} value is not a dict: {value}".format(name=name, value=value)) + elif name.endswith('_json'): + try: + value = json.loads(value) + except ValueError as e: + raise exceptions.ParsingError(u"Error while parsing data: {}".format(e)) return value