From 74e108603f639e8017a31261f5816bf93292c2f8 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 10 May 2022 21:42:39 +0100 Subject: [PATCH] Additional checks on response in enum_ads --- handler/sources/local.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handler/sources/local.py b/handler/sources/local.py index 3393610..086bd8d 100644 --- a/handler/sources/local.py +++ b/handler/sources/local.py @@ -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"]