mirror of
https://github.com/beetbox/beets.git
synced 2025-12-25 18:13:17 +01:00
removed unnecessary KeyError test
This commit is contained in:
parent
eb4d2ef5c9
commit
93744ff00a
1 changed files with 1 additions and 4 deletions
|
|
@ -157,10 +157,7 @@ class NoneQuery(FieldQuery):
|
|||
return self.field + " IS NULL", ()
|
||||
|
||||
def match(self, item):
|
||||
try:
|
||||
return item.get(self.field) is None
|
||||
except KeyError:
|
||||
return True
|
||||
return item.get(self.field, default=None) is None
|
||||
|
||||
@classmethod
|
||||
def value_match(cls, pattern, value):
|
||||
|
|
|
|||
Loading…
Reference in a new issue