Fix crash on failed lookup of URI from Spotify
This commit is contained in:
parent
5d4c13268f
commit
2a1a3a8f0d
@ -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
|
||||
|
||||
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user