mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 12:32:33 +01:00
Account for items that do not have flexible attributes
This commit is contained in:
parent
5494c8b260
commit
7c568aa528
1 changed files with 1 additions and 4 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue