aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-12-19 17:38:28 +0100
committercedricbonhomme <devnull@localhost>2010-12-19 17:38:28 +0100
commit49e3da97a9d5716dced6ee8c6053155c9853aec0 (patch)
tree6620a8f38ea779bea8b6534e14846853812f1506
parentCode improvements #1. (diff)
downloadnewspipe-49e3da97a9d5716dced6ee8c6053155c9853aec0.tar.gz
newspipe-49e3da97a9d5716dced6ee8c6053155c9853aec0.tar.bz2
newspipe-49e3da97a9d5716dced6ee8c6053155c9853aec0.zip
Code improvements #2.
-rwxr-xr-xpyAggr3g470r.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index 71bcbd14..4827e4f2 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -407,13 +407,9 @@ class Root:
"""
try:
feed_id, article_id = param.split(':')
+ feed, article = self.feeds[feed_id], self.feeds[feed_id].articles[article_id]
except:
- return self.error_page("Bad URL")
- try:
- feed = self.feeds[feed_id]
- article = feed.articles[article_id]
- except:
- self.error_page("This article do not exists.")
+ return self.error_page("Bad URL. This article do not exists.")
html = htmlheader()
html += htmlnav
html += """<div>"""
bgstack15