Retry for POST, PUT and DELETE, fixes #577 (#596)

* Retry for POST, PUT and DELETE, fixes #577

* Lint
This commit is contained in:
Stéphane Bruckert authored and GitHub committed 2020-10-24 14:32:04 +01:00
1 parent 275cd7ea89
commit dd948c49d9
5 files changed
+25 -12

No files matched your search

-4
View File
@@ -11,9 +11,5 @@ def get_spotify_playlist(spotify_object, playlist_name, username):
playlists = spotify_object.next(playlists)
def create_spotify_playlist(spotify_object, playlist_name, username):
return spotify_object.user_playlist_create(username, playlist_name)
def get_as_base64(url):
return base64.b64encode(requests.get(url).content).decode("utf-8")