liqian 2 yıl önce
ebeveyn
işleme
bfeca9ec15
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  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. 分词