Additional checks on response in enum_ads
This commit is contained in:
parent
b2b7b3b923
commit
74e108603f
|
@ -259,6 +259,8 @@ class Local(util.Base):
|
|||
ads_total = []
|
||||
if not ads["success"]:
|
||||
return False
|
||||
if not ads["response"]:
|
||||
return False
|
||||
for ad in ads["response"]["data"]["ad_list"]:
|
||||
if self.platform == "agora":
|
||||
asset = ad["data"]["asset"]
|
||||
|
|
Loading…
Reference in New Issue