forked from 0x2620/pandora
make sure settings are dicts
This commit is contained in:
parent
4512b010c6
commit
3e14795d0b
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue