Fix crash on failed lookup of URI from Spotify

This commit is contained in:
Stein Magnus Jodal 2011-01-22 00:43:45 +01:00
parent 5d4c13268f
commit 2a1a3a8f0d
2 changed files with 3 additions and 1 deletions

View File

@ -53,6 +53,8 @@ to this problem.
normal playlists. More permanent fix requires support for checking playlist
types in pyspotify (see :issue:`62`).
- Fix crash on failed lookup of track by URI. (Fixes: :issue:`60`)
- Local backend:
- Add :command:`mopidy-scan` command to generate ``tag_cache`` files without

View File

@ -22,7 +22,7 @@ class SpotifyLibraryProvider(BaseLibraryProvider):
# playlists.
return SpotifyTranslator.to_mopidy_track(spotify_track)
except SpotifyError as e:
logger.warning(u'Failed to lookup: %s', uri, e)
logger.debug(u'Failed to lookup "%s": %s', uri, e)
return None
def refresh(self, uri=None):