diff options
author | Devaev Maxim <[email protected]> | 2019-09-19 06:47:54 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-09-19 06:47:54 +0300 |
commit | 300d4603ca725dfb8749e466eabe0561ad54cb6b (patch) | |
tree | 2f53653dba9c95a233f404dafe1da6aff71011bf /kvmd/yamlconf | |
parent | 313e2c77fd94b1384ebb9057b43115ef14a642ba (diff) |
fixed config loading
Diffstat (limited to 'kvmd/yamlconf')
-rw-r--r-- | kvmd/yamlconf/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/yamlconf/__init__.py b/kvmd/yamlconf/__init__.py index b0bc356f..a253d449 100644 --- a/kvmd/yamlconf/__init__.py +++ b/kvmd/yamlconf/__init__.py @@ -162,7 +162,7 @@ def make_config(raw: Dict[str, Any], scheme: Dict[str, Any], _keys: Tuple[str, . value = raw.get(key, option.default) try: value = option.type(value) - except ValueError as err: + except (TypeError, ValueError) as err: raise ConfigError(f"Invalid value {value!r} for key {make_full_name(key)!r}: {err}") config[key] = value |