aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-01-05 08:11:45 +0100
committercedricbonhomme <devnull@localhost>2011-01-05 08:11:45 +0100
commitbc71732e368b28a96538b96e12fa80d383d8dfec (patch)
tree7b9a59dd506b8792b6d0b22fe1fca8cedcc04897 /pyAggr3g470r.py
parentMinor changes. (diff)
downloadnewspipe-bc71732e368b28a96538b96e12fa80d383d8dfec.tar.gz
newspipe-bc71732e368b28a96538b96e12fa80d383d8dfec.tar.bz2
newspipe-bc71732e368b28a96538b96e12fa80d383d8dfec.zip
Minor bug fix when removing a feed from the data base.
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-xpyAggr3g470r.py8
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"
bgstack15