Skip to content

Commit

Permalink
Account for items that do not have flexible attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
pprkut committed Dec 2, 2018
1 parent 0f6a38f commit cae633c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions beets/dbcore/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,10 +578,7 @@ def _get_objects(self):
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):
Expand Down

0 comments on commit cae633c

Please sign in to comment.