mirror of
https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
synced 2024-11-29 19:24:34 +01:00
Limit invoke_url retry's to 5
This commit is contained in:
parent
e00ad81c5e
commit
58fe9ae9e1
@ -89,7 +89,7 @@ class ZSpotify:
|
||||
responseText = response.text
|
||||
responseJson = response.json()
|
||||
|
||||
if 'error' in responseJson and tryCount < 20:
|
||||
if 'error' in responseJson and tryCount < 5:
|
||||
|
||||
Printer.Print(PrintChannel.API_ERROR, f"Spotify API Error ({responseJson['error']['status']}): {responseJson['error']['message']}")
|
||||
time.sleep(5)
|
||||
|
Loading…
Reference in New Issue
Block a user