Add check in Agora for validating ad response
This commit is contained in:
parent
53f28fac40
commit
d1f43f0efc
|
@ -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