diff --git a/CHANGELOG.md b/CHANGELOG.md index 074c40e..d51300e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Changed URI handling in `client.Spotify._get_id()` to remove qureies if provided by error. * Added a new parameter to `RedisCacheHandler` to allow custom keys (instead of the default `token_info` key) * Simplify check for existing token in `RedisCacheHandler` +* Fix `AttributeError` for `text` attribute of the `Response` object ### Changed * Removed Python 3.5 and added Python 3.9 in Github Action diff --git a/spotipy/oauth2.py b/spotipy/oauth2.py index a7ce334..0f30f5f 100644 --- a/spotipy/oauth2.py +++ b/spotipy/oauth2.py @@ -140,7 +140,7 @@ class SpotifyAuthBase(object): # then try do decode it into text # if we receive an empty string (which is falsy), then replace it with `None` - error = response.txt or None + error = response.text or None error_description = None raise SpotifyOauthError(