diff --git a/mopidy_soundcloud/soundcloud.py b/mopidy_soundcloud/soundcloud.py index 220c365..73b82f3 100644 --- a/mopidy_soundcloud/soundcloud.py +++ b/mopidy_soundcloud/soundcloud.py @@ -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: