diff options
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-x | pyAggr3g470r.py | 8 |
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>""" |