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
|
return False
|
||||||
if ads is False:
|
if ads is False:
|
||||||
return False
|
return False
|
||||||
|
if ads["response"] is None:
|
||||||
|
return False
|
||||||
if "data" not in ads["response"]:
|
if "data" not in ads["response"]:
|
||||||
return False
|
return False
|
||||||
for ad in ads["response"]["data"]["ad_list"]:
|
for ad in ads["response"]["data"]["ad_list"]:
|
||||||
|
|
Loading…
Reference in New Issue