Libraries refactor and add some sinks #4

Closed
m wants to merge 136 commits from library-refactor into master
1 changed files with 2 additions and 0 deletions
Showing only changes of commit d1f43f0efc - Show all commits

View File

@ -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"]: