aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-31 15:14:40 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-31 15:14:40 +0100
commit23575ab07bfa1d1b01a7db1e15c6ef76e7a6417a (patch)
treea8825b19de3202ed24554ef2a97d58fa21969eec
parentdebug (diff)
downloadnewspipe-23575ab07bfa1d1b01a7db1e15c6ef76e7a6417a.tar.gz
newspipe-23575ab07bfa1d1b01a7db1e15c6ef76e7a6417a.tar.bz2
newspipe-23575ab07bfa1d1b01a7db1e15c6ef76e7a6417a.zip
log this
-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