No need to calculate length of the list to test if empty.

This commit is contained in:
Laurent Monin
2014-05-04 16:09:53 +02:00
parent e31d77f8d5
commit cdec8f4e92

View File

@@ -286,7 +286,7 @@ class CoverArt:
def _walk(self):
"""Downloads each item in ``try_list``. If there are none left, loading of
``album`` will be finalized."""
if len(self.try_list) == 0:
if not self.try_list:
self.album._finalize_loading(None)
elif self.album.id not in self.album.tagger.albums:
return