mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 01:10:45 +00:00
* Retry for POST, PUT and DELETE, fixes #577 * Lint
This commit is contained in:
1 parent
275cd7ea89
commit
dd948c49d9
5 files changed
+25
-12
No files matched your search
+2
-1
@@ -194,6 +194,7 @@ class Spotify(object):
|
||||
total=self.retries,
|
||||
connect=None,
|
||||
read=False,
|
||||
method_whitelist=frozenset(['GET', 'POST', 'PUT', 'DELETE']),
|
||||
status=self.status_retries,
|
||||
backoff_factor=self.backoff_factor,
|
||||
status_forcelist=self.status_forcelist)
|
||||
@@ -272,7 +273,7 @@ class Spotify(object):
|
||||
except (IndexError, AttributeError):
|
||||
reason = None
|
||||
raise SpotifyException(
|
||||
599,
|
||||
429,
|
||||
-1,
|
||||
"%s:\n %s" % (request.path_url, "Max Retries"),
|
||||
reason=reason
|
||||
|
||||
Reference in new issue
Block a user