liqian 2 年之前
父节点
当前提交
7c8c936db7
共有 1 个文件被更改,包括 2 次插入0 次删除
  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')