Ver código fonte

Merge branch 'yifan' of ASJ_ADS/sync_amz_data into master

yifan_huang96 1 ano atrás
pai
commit
57538a322b
1 arquivos alterados com 1 adições e 1 exclusões
  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))))