cleaned up code

This commit is contained in:
Squandor 2017-01-02 11:34:55 +01:00
parent 91ed81d498
commit 6a34f11d66
1 changed files with 1 additions and 4 deletions

View File

@ -68,11 +68,8 @@ def retrieveValue(page, component):
dict[k] = v
else:
for sk, sv in config[page][match.group(1)][match.group(2)].iteritems():
if type(sv) is list:
sv.append(match.group(2))
else:
sv = [sv, match.group(2)]
sv = strToList(sv)
sv.append(match.group(2))
dict[sk] = sv
except:
dict = {}