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 Mar 23, 2019
1 parent 5494c8b commit 7c568aa
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 @@ -583,10 +583,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 7c568aa

Please sign in to comment.