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