mirror of
https://gitlab.com/RemixDev/deezer-py.git
synced 2025-01-29 17:18:28 +00:00
fixed error when payload is null
This commit is contained in:
parent
90ebf8693b
commit
63618bfc8c
|
@ -75,7 +75,7 @@ class GW:
|
|||
sleep(2)
|
||||
return self.api_call(method, args, params)
|
||||
if len(result_json['error']):
|
||||
if result_json.get('payload', {}).get('FALLBACK', {}):
|
||||
if result_json.get('payload', {}) and result_json['payload'].get('FALLBACK', {}):
|
||||
for key in result_json['payload']['FALLBACK'].keys():
|
||||
args[key] = result_json['payload']['FALLBACK'][key]
|
||||
return self.api_call(method, args, params)
|
||||
|
|
Loading…
Reference in a new issue