aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-31 14:52:53 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-31 14:52:53 +0100
commit04af4b0fbbfa69c442960d48cf67afd9da0d76a2 (patch)
treed264c31b8859e09d6715653468dc6f0c8ebc4003
parentupdated -> updated_date (diff)
downloadnewspipe-04af4b0fbbfa69c442960d48cf67afd9da0d76a2.tar.gz
newspipe-04af4b0fbbfa69c442960d48cf67afd9da0d76a2.tar.bz2
newspipe-04af4b0fbbfa69c442960d48cf67afd9da0d76a2.zip
strange problem here
-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 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):
bgstack15