Skip to content

Commit

Permalink
Merge pull request #61 from blueyed/handle-none-response-connect
Browse files Browse the repository at this point in the history
Handle ConnectionError without a response
  • Loading branch information
jodal committed Nov 28, 2015
2 parents 97488d9 + feff686 commit bccce7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mopidy_soundcloud/soundcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, config):
try:
self._get('me.json')
except Exception as err:
if err.response.status_code == 401:
if err.response is not None and err.response.status_code == 401:
logger.error('Invalid "auth_token" used for SoundCloud '
'authentication!')
else:
Expand Down

0 comments on commit bccce7a

Please sign in to comment.