diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-01-26 23:37:07 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-01-26 23:37:07 +0100 |
commit | 6bebe5bb535dc93e2edeb8575e0fef70261a5389 (patch) | |
tree | 36af925ba66ea174b16b806efe504b1af520b38f /pyaggr3g470r | |
parent | Updated /feed page. (diff) | |
download | newspipe-6bebe5bb535dc93e2edeb8575e0fef70261a5389.tar.gz newspipe-6bebe5bb535dc93e2edeb8575e0fef70261a5389.tar.bz2 newspipe-6bebe5bb535dc93e2edeb8575e0fef70261a5389.zip |
Catch exception if the description is not available.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r-- | pyaggr3g470r/feedgetter.py | 10 |
1 files 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']: |