diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-31 14:52:53 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-31 14:52:53 +0100 |
commit | 04af4b0fbbfa69c442960d48cf67afd9da0d76a2 (patch) | |
tree | d264c31b8859e09d6715653468dc6f0c8ebc4003 /src/crawler/classic_crawler.py | |
parent | updated -> updated_date (diff) | |
download | newspipe-04af4b0fbbfa69c442960d48cf67afd9da0d76a2.tar.gz newspipe-04af4b0fbbfa69c442960d48cf67afd9da0d76a2.tar.bz2 newspipe-04af4b0fbbfa69c442960d48cf67afd9da0d76a2.zip |
strange problem here
Diffstat (limited to 'src/crawler/classic_crawler.py')
-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 50f98258..9f0bb0d9 100644 --- a/src/crawler/classic_crawler.py +++ b/src/crawler/classic_crawler.py @@ -83,7 +83,10 @@ async def parse_feed(user, feed): finally: up_feed['last_retrieved'] = datetime.now(dateutil.tz.tzlocal()) if parsed_feed is None: - FeedController().update({'id': feed.id}, up_feed) + try: + FeedController().update({'id': feed.id}, up_feed) + except Exception as e: + print('something bad here: ' + str(e)) return if not is_parsing_ok(parsed_feed): |