Fix text attribute for Response object (#811)

* Fix text attribute for Response object

* Add a changelog for the AttributeError PR
This commit is contained in:
Mohammad Momeni authored and GitHub committed 2022-06-18 23:17:58 +01:00
1 parent c1a85f1469
commit 72a6cd9190
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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(