From 269e9d69e072a1dd69961180b8c4d95268c25191 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 13 Jun 2017 14:51:32 +0200 Subject: [PATCH] Improve typechecking message --- qutebrowser/config/configtypes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/config/configtypes.py b/qutebrowser/config/configtypes.py index c876b64f3..79ba4a18f 100644 --- a/qutebrowser/config/configtypes.py +++ b/qutebrowser/config/configtypes.py @@ -122,8 +122,8 @@ class BaseType: if (value is not None and pytype is not None and not isinstance(value, pytype)): raise configexc.ValidationError( - value, "expected a value of type {} but got {}".format( - pytype, type(value))) + value, "expected a value of type {} but got {}.".format( + pytype.__name__, type(value).__name__)) if isinstance(value, str): if not value and not self.none_ok: