diff --git a/beets/dbcore/db.py b/beets/dbcore/db.py index 1c6d066c3..a07a19997 100644 --- a/beets/dbcore/db.py +++ b/beets/dbcore/db.py @@ -593,6 +593,11 @@ class Results(object): return self._row_count def __nonzero__(self): + """Does this result contain any objects? + """ + return self.__bool__() + + def __bool__(self): """Does this result contain any objects? """ return bool(len(self))