From 04af4b0fbbfa69c442960d48cf67afd9da0d76a2 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 31 Oct 2016 14:52:53 +0100 Subject: strange problem here --- 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 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): -- cgit