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. 分词