Included api response in exception for failed api calls
This commit is contained in:
parent
57844a32a4
commit
eddf217096
|
@ -87,7 +87,7 @@ class Deezer:
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
return self.api_call(method, args)
|
return self.api_call(method, args)
|
||||||
if 'error' in result_json.keys():
|
if 'error' in result_json.keys():
|
||||||
raise APIError()
|
raise APIError(result_json)
|
||||||
return result_json
|
return result_json
|
||||||
|
|
||||||
def login(self, email, password, re_captcha_token):
|
def login(self, email, password, re_captcha_token):
|
||||||
|
|
Loading…
Reference in New Issue