From 6bebe5bb535dc93e2edeb8575e0fef70261a5389 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 26 Jan 2014 23:37:07 +0100 Subject: Catch exception if the description is not available. --- pyaggr3g470r/feedgetter.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py index 59b22c38..d544a19e 100644 --- a/pyaggr3g470r/feedgetter.py +++ b/pyaggr3g470r/feedgetter.py @@ -108,9 +108,15 @@ class FeedGetter(object): # Feed informations if feed.title == "": - feed.title = a_feed.feed.title + try: + feed.title = a_feed.feed.title + except: + feed.title = "" if feed.description == "": - feed.description = a_feed.feed.subtitle + try: + feed.description = a_feed.feed.subtitle + except: + feed.description = "" articles = [] for article in a_feed['entries']: -- cgit