Prechádzať zdrojové kódy

ammend iter_adgroupbid

huangyifan 1 rok pred
rodič
commit
c16550975d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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))))