aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/crawler/classic_crawler.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/crawler/classic_crawler.py b/src/crawler/classic_crawler.py
index 3a103697..d263494f 100644
--- a/src/crawler/classic_crawler.py
+++ b/src/crawler/classic_crawler.py
@@ -175,7 +175,10 @@ async def insert_database(user, feed):
async def init_process(user, feed):
# Fetch the feed and insert new articles in the database
articles = await insert_database(user, feed)
- logger.debug('inserted articles for %s', feed.title)
+ try:
+ logger.debug('inserted articles for %s', feed.title)
+ except Exception as e:
+ print('init_process: ' + str(e))
return articles
bgstack15