aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-01-02 16:42:19 +0100
committercedricbonhomme <devnull@localhost>2011-01-02 16:42:19 +0100
commita0407c35eb9c300d2e4548aa1d9c7f6923dd5040 (patch)
tree9356d357fc45e159f9a3f25491689cce713567e9
parentRemoved year of copyright. (diff)
downloadnewspipe-a0407c35eb9c300d2e4548aa1d9c7f6923dd5040.tar.gz
newspipe-a0407c35eb9c300d2e4548aa1d9c7f6923dd5040.tar.bz2
newspipe-a0407c35eb9c300d2e4548aa1d9c7f6923dd5040.zip
Minor changes.
-rwxr-xr-xpyAggr3g470r.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index 51b06aff..b7a19d34 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -454,10 +454,11 @@ class Root:
pass
try:
previous = feed.articles.values()[feed.articles.keys().index(article_id) + 1]
+ except:
+ previous = feed.articles.values()[0]
+ finally:
html += """<div style="float:left;"><a href="/article/%s:%s" title="%s"><img src="/css/img/previous-article.png" /></a></div>\n""" % \
(feed_id, previous.article_id, previous.article_title)
- except:
- pass
html += "\n</div>\n"
bgstack15