check for wrong entries in settings
This commit is contained in:
parent
9eb3b8c066
commit
80e3a30e1f
1 changed files with 1 additions and 1 deletions
2
ibt2.py
2
ibt2.py
|
@ -556,7 +556,7 @@ class SettingsHandler(BaseHandler):
|
||||||
if id_ is not None:
|
if id_ is not None:
|
||||||
query['_id'] = id_
|
query['_id'] = id_
|
||||||
res = self.db.query(self.collection, query)
|
res = self.db.query(self.collection, query)
|
||||||
res = dict((i.get('_id'), i.get('value')) for i in res if '_id' in i)
|
res = dict((i.get('_id'), i.get('value')) for i in res if '_id' in i and isinstance(i.get('_id'), str))
|
||||||
if id_ is not None:
|
if id_ is not None:
|
||||||
res = {id_: res.get(id_)}
|
res = {id_: res.get(id_)}
|
||||||
self.write(res)
|
self.write(res)
|
||||||
|
|
Loading…
Reference in a new issue