From ffd1a9146798028d3cde1a64b0b9ef66559c6be7 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 15 Jun 2017 13:04:50 +0200 Subject: [PATCH] Fix Directory conftype --- 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 35265445f..c39fdceb7 100644 --- a/qutebrowser/config/configtypes.py +++ b/qutebrowser/config/configtypes.py @@ -978,9 +978,9 @@ class Directory(BaseType): """A directory on the local filesystem.""" def from_py(self, value): - self._basic_py_validation(value, dict) + self._basic_py_validation(value, str) if not value: - return + return None value = os.path.expandvars(value) value = os.path.expanduser(value) try: