mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 17:10:45 +00:00
This reverts commit 18e82b6625.
This commit is contained in:
1 parent
18e82b6625
commit
76b640ae1e
2 files changed
+3
-8
No files matched your search
+1
-4
@@ -7,10 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Fixed
|
||||
|
||||
- UnboundLocalError when a request fails ( #571 )
|
||||
|
||||
// Add your changes here and then delete this line
|
||||
|
||||
## [2.16.0] - 2020-09-16
|
||||
|
||||
|
||||
+2
-4
@@ -243,8 +243,7 @@ class Spotify(object):
|
||||
|
||||
response.raise_for_status()
|
||||
results = response.json()
|
||||
except requests.exceptions.HTTPError as http_error:
|
||||
response = http_error.response
|
||||
except requests.exceptions.HTTPError:
|
||||
try:
|
||||
msg = response.json()["error"]["message"]
|
||||
except (ValueError, KeyError):
|
||||
@@ -264,8 +263,7 @@ class Spotify(object):
|
||||
reason=reason,
|
||||
headers=response.headers,
|
||||
)
|
||||
except requests.exceptions.RetryError as retry_error:
|
||||
response = retry_error.response
|
||||
except requests.exceptions.RetryError:
|
||||
logger.error('Max Retries reached')
|
||||
raise SpotifyException(
|
||||
599,
|
||||
|
||||
Reference in new issue
Block a user