From 49e3da97a9d5716dced6ee8c6053155c9853aec0 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Sun, 19 Dec 2010 17:38:28 +0100 Subject: Code improvements #2. --- pyAggr3g470r.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'pyAggr3g470r.py') 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 += """
""" -- cgit