summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-09-04 20:17:03 +0200
committerAnton Khirnov <anton@khirnov.net>2011-09-04 20:17:03 +0200
commit1fdeede10d0a3a45e375c084e804c1ca01669425 (patch)
treec4f0d450c5b2a92e96e6cb1c811eb007bec5fbf3
parenteb40d86a586451ebd399428899c17ac66619f314 (diff)
AlbumCover: fix an exception in last.fm fetcher.
-rw-r--r--nephilim/plugins/AlbumCover.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nephilim/plugins/AlbumCover.py b/nephilim/plugins/AlbumCover.py
index 6de4519..b4302bc 100644
--- a/nephilim/plugins/AlbumCover.py
+++ b/nephilim/plugins/AlbumCover.py
@@ -361,7 +361,8 @@ class FetcherLastfm(metadata_fetcher.MetadataFetcher):
pixmap = QtGui.QPixmap()
if pixmap.loadFromData(data):
self.finish(pixmap)
- self.finish()
+ else:
+ self.finish()
class FetcherLocal(QtCore.QObject):
"""This fetcher tries to find cover files in the same directory as