diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-31 15:14:40 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-31 15:14:40 +0100 |
commit | 23575ab07bfa1d1b01a7db1e15c6ef76e7a6417a (patch) | |
tree | a8825b19de3202ed24554ef2a97d58fa21969eec /src | |
parent | debug (diff) | |
download | newspipe-23575ab07bfa1d1b01a7db1e15c6ef76e7a6417a.tar.gz newspipe-23575ab07bfa1d1b01a7db1e15c6ef76e7a6417a.tar.bz2 newspipe-23575ab07bfa1d1b01a7db1e15c6ef76e7a6417a.zip |
log this
Diffstat (limited to 'src')
-rw-r--r-- | src/crawler/classic_crawler.py | 5 |
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 |