make sure settings are dicts

This commit is contained in:
j 2018-11-15 10:29:14 +00:00
parent 4512b010c6
commit 3e14795d0b

View file

@ -785,7 +785,7 @@ def setUI(request, data):
if isinstance(p, list):
p = p[getPositionById(p, key)]
else:
if key not in p:
if key not in p or not isinstance(p[key], dict):
p[key] = {}
p = p[key]
if value == None and keys[0] in p: