diff options
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-x | pyAggr3g470r.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index b7a19d34..ebe58a8a 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -944,11 +944,11 @@ class Root: html = htmlheader() html += htmlnav html += """<div class="left inner">""" - if feed in self.feeds.values(): - utils.remove_feed(feed.feed_link) + try: + utils.remove_feed(self.feeds[feed_id].feed_link) html += """<p>All articles from the feed <i>%s</i> are now removed from the base.</p><br />""" % \ - (feed.feed_title,) - else: + (self.feeds[feed_id].feed_title,) + except: return self.error_page("This feed do not exists.") html += """<a href="/management/">Back to the management page.</a><br />\n""" html += "<hr />\n" |