liqian 2 年之前
父節點
當前提交
bfeca9ec15
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      cut_words.py

+ 2 - 0
cut_words.py

@@ -146,6 +146,8 @@ def data_update(project, table, now_date):
         log_.info(f"source = {source}, count = {len(title_list)}")
         for title in title_list:
             log_.info(f"title: {title}")
+            if title is None:
+                continue
             if len(title) == 0:
                 return
             # 1. 分词