From 0c262549e40216be5ea6970e6fe1b68e9437d5bc Mon Sep 17 00:00:00 2001 From: uh_wot <3631986-uh_wot@users.noreply.gitlab.com> Date: Mon, 9 Mar 2020 17:07:16 +0100 Subject: [PATCH] replaced time.wait with time.sleep --- deemix/api/deezer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deemix/api/deezer.py b/deemix/api/deezer.py index 5fb8e8c..e4c9336 100755 --- a/deemix/api/deezer.py +++ b/deemix/api/deezer.py @@ -46,7 +46,7 @@ class Deezer: headers=self.http_headers ) except: - time.wait(2) + time.sleep(2) return self.get_track_md5(sng_id) response = site.json() return response['results']['PUID'] @@ -66,7 +66,7 @@ class Deezer: headers=self.http_headers ) except: - time.wait(2) + time.sleep(2) return self.gw_api_call(method, args) return result.json() @@ -80,7 +80,7 @@ class Deezer: ) result_json = result.json() except: - time.wait(2) + time.sleep(2) return self.api_call(method, args) if 'error' in result_json.keys(): raise APIError()