From 1812aeb2383c1c005dce74ad88502cd1e88c21a8 Mon Sep 17 00:00:00 2001 From: Unrud Date: Fri, 2 Jun 2017 12:42:40 +0200 Subject: [PATCH] include expected type of config option in error --- radicale/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/radicale/config.py b/radicale/config.py index 593c457..5521190 100644 --- a/radicale/config.py +++ b/radicale/config.py @@ -232,6 +232,7 @@ def load(paths=(), extra_config=None, ignore_missing_paths=True): type_(config.get(section, option)) except Exception as e: raise RuntimeError( - "Invalid value %r for option %r in section %r in config" % - (config.get(section, option), option, section)) from e + "Invalid %s value for option %r in section %r in config: " + "%r" % (type_.__name__, option, section, + config.get(section, option))) from e return config