Skip to content

Commit

Permalink
Spotify backend: better error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
bok committed Mar 30, 2011
1 parent ab1f9d0 commit e0b212a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mopidy/backends/spotify/session_manager.py
Expand Up @@ -34,6 +34,9 @@ def run_inside_try(self):

def logged_in(self, session, error):
"""Callback used by pyspotify"""
if error:
logger.error(u'Spotify login error: %s', error)
return
logger.info(u'Connected to Spotify')
self.session = session
if settings.SPOTIFY_HIGH_BITRATE:
Expand All @@ -55,7 +58,7 @@ def metadata_updated(self, session):

def connection_error(self, session, error):
"""Callback used by pyspotify"""
logger.error(u'Connection error: %s', error)
logger.error(u'Spotify connection error: %s', error)

def message_to_user(self, session, message):
"""Callback used by pyspotify"""
Expand Down

0 comments on commit e0b212a

Please sign in to comment.