resolved small bug from title feature

This commit is contained in:
Squandor 2017-01-02 10:47:21 +01:00
parent 62b69e6ade
commit 91ed81d498
1 changed files with 4 additions and 1 deletions

View File

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