Explorar o código

ammend iter_adgroupbid

huangyifan hai 1 ano
pai
achega
c16550975d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sync_amz_data/public/amz_ad_client.py

+ 1 - 1
sync_amz_data/public/amz_ad_client.py

@@ -262,7 +262,7 @@ class SPClient(BaseClient):
                 yield from info['bidRecommendations']
             except:
                 print("空值")
-                return []
+                return iter([])
 
     def get_keyword_bidrecommendation(self, adGroupId: str, keyword: list, matchType: list):
         keywords = list(map(lambda x: {"keyword": x[0], "matchType": x[1]}, list(zip(keyword, matchType))))