liqian há 2 anos atrás
pai
commit
7c8c936db7
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      words_func.py

+ 2 - 0
words_func.py

@@ -41,6 +41,8 @@ def update_wechat_score_data(data):
     log_.info(f"data count = {len(data)}")
     wechat_score_data_list = []
     for item in data:
+        if item is None:
+            continue
         word_id = item.get('id')
         word = item.get('word')
         wechat_scores = item.get('wechatScores')