aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-01-26 23:37:07 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-01-26 23:37:07 +0100
commit6bebe5bb535dc93e2edeb8575e0fef70261a5389 (patch)
tree36af925ba66ea174b16b806efe504b1af520b38f
parentUpdated /feed page. (diff)
downloadnewspipe-6bebe5bb535dc93e2edeb8575e0fef70261a5389.tar.gz
newspipe-6bebe5bb535dc93e2edeb8575e0fef70261a5389.tar.bz2
newspipe-6bebe5bb535dc93e2edeb8575e0fef70261a5389.zip
Catch exception if the description is not available.
-rw-r--r--pyaggr3g470r/feedgetter.py10
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']:
bgstack15