liqian 2 anos atrás
pai
commit
bfeca9ec15
1 arquivos alterados com 2 adições e 0 exclusões
  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. 分词