luojunhui 10 tháng trước cách đây
mục cha
commit
3fdc007476
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      coldStartTasks/crawler/weixin_account_crawler.py

+ 3 - 2
coldStartTasks/crawler/weixin_account_crawler.py

@@ -249,8 +249,9 @@ class WeixinAccountCrawler(object):
                 print(e)
                 print(traceback.format_exc())
 
-        article_id_tuple = tuple(article_id_list)
-        affected_rows = self.update_crawler_article_status(article_id_tuple)
+        if article_id_list:
+            article_id_tuple = tuple(article_id_list)
+            affected_rows = self.update_crawler_article_status(article_id_tuple)
 
         bot(
             title="微信账号抓取V2完成",