mirror of
https://github.com/beetbox/beets.git
synced 2026-05-27 04:22:02 -04:00
removed unnecessary KeyError test
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user