Add check in Agora for validating ad response
This commit is contained in:
parent
9a3ddf609e
commit
fc103e5bfa
|
@ -317,6 +317,8 @@ class Agora(object):
|
|||
return False
|
||||
if ads is False:
|
||||
return False
|
||||
if ads["response"] is None:
|
||||
return False
|
||||
if "data" not in ads["response"]:
|
||||
return False
|
||||
for ad in ads["response"]["data"]["ad_list"]:
|
||||
|
|
Loading…
Reference in New Issue