Account for items that do not have flexible attributes

This commit is contained in:
Heinz Wiesinger 2018-12-02 11:50:12 +01:00
parent 5494c8b260
commit 7c568aa528

View file

@ -583,10 +583,7 @@ class Results(object):
else:
while self._rows:
row = self._rows.pop(0)
if flex_attrs:
obj = self._make_model(row, flex_attrs[row['id']])
else:
obj = self._make_model(row)
obj = self._make_model(row, flex_attrs.get(row['id'], {}))
# If there is a slow-query predicate, ensurer that the
# object passes it.
if not self.query or self.query.match(obj):