From 23575ab07bfa1d1b01a7db1e15c6ef76e7a6417a Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 31 Oct 2016 15:14:40 +0100 Subject: log this --- src/crawler/classic_crawler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit