# local import
from ...lib.plugin import Plugin
-from ...lib.simaecho import SimaEch, EchoError, EchoNotFound
+from ...lib.simaecho import SimaEch, EchoError
from ...lib.track import Track
from ...lib.meta import Artist
try:
# TODO: let's propagate Artist type
[as_art.append(str(art)) for art in as_artists]
- except EchoNotFound as err:
- self.log.warning(err)
except EchoError as err:
self.log.warning('EchoNest: {0}'.format(err))
if as_art:
- self.log.debug('Fetched {0} artist(s) from echonest'.format(
- len(as_art)))
+ self.log.debug('Fetched {0} artist(s)'.format(len(as_art)))
self.log.debug('x-ratelimit-remaining: {}'.format(SimaEch.ratelimit))
return as_art
# local import
from ...lib.plugin import Plugin
-from ...lib.simafm import SimaFM, WSHTTPError, WSNotFound, WSError
+from ...lib.simafm import SimaFM, WSError
from ...lib.track import Track
from ...lib.meta import Artist
try:
# TODO: let's propagate Artist type
[as_art.append((str(a), m)) for a, m in as_artists]
- except WSHTTPError as err:
- self.log.warning('last.fm http error: %s' % err)
- except WSNotFound as err:
- self.log.warning("last.fm: %s" % err)
except WSError as err:
- self.log.warning('last.fm module error: %s' % err)
+ self.log.warning('Last.fm: {0}'.format(err))
if as_art:
- self.log.debug('Fetched %d artist(s) from last.fm' % len(as_art))
+ self.log.debug('Fetched {0} artist(s)'.format(len(as_art)))
return as_art
def get_recursive_similar_artist(self):