Do not try to unserialize multiple times when a setting is inherited

This commit is contained in:
Raphael Michel
2016-11-01 10:46:18 +01:00
parent 95703a0703
commit e8b28f88eb
2 changed files with 24 additions and 2 deletions

View File

@@ -417,7 +417,7 @@ class SettingsProxy:
else:
value = None
if self._parent:
value = self._parent.settings.get(key)
value = self._parent.settings.get(key, as_type=str)
if value is None and key in DEFAULTS:
value = DEFAULTS[key]['default']
if value is None and default is not None: