|
@@ -142,7 +142,10 @@ class TitleRewriteTask:
|
|
|
articles = self.get_articles_batch()
|
|
|
bar = tqdm(articles, desc="title rewrite task")
|
|
|
for article in articles:
|
|
|
- self.change_each_article(article)
|
|
|
- bar.set_postfix({"content_id": article['content_trace_id']})
|
|
|
+ try:
|
|
|
+ self.change_each_article(article)
|
|
|
+ bar.set_postfix({"content_id": article['content_trace_id']})
|
|
|
+ except Exception as e:
|
|
|
+ print(e)
|
|
|
|
|
|
|