Merge branch 'master' into echoplus

This commit is contained in:
Peter Schnebel 2013-10-16 11:42:23 +02:00
commit 2a9def94b8

View file

@ -55,7 +55,10 @@ def _tags_for(obj):
not found or another error occurs.
"""
try:
res = super(pylast.Album, obj).get_top_tags()
if isinstance(obj, pylast.Album):
res = super(pylast.Album, obj).get_top_tags()
else:
res = obj.get_top_tags()
except PYLAST_EXCEPTIONS as exc:
log.debug(u'last.fm error: %s' % unicode(exc))
return []