Fix import error

This commit is contained in:
Adrián Chaves 2019-12-17 15:09:43 +01:00
parent ab13221b0b
commit 20719bac5c
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ class BaseSettings(MutableMapping):
value = self.get(name, default)
if value is None:
return {}
if isinstance(value, six.string_types):
if isinstance(value, str):
try:
return json.loads(value, object_pairs_hook=OrderedDict)
except ValueError: