aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/views.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index d9fb7470..39e4d798 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -392,6 +392,9 @@ def delete_feed(feed_id=None):
user.feeds.remove(feed)
user.save()
flash('Feed "' + feed.title + '" successfully deleted.', 'success')
+ break
+ else:
+ flash('Impossible to delete this feed.', 'danger')
return redirect(url_for('home'))
@app.route('/profile/', methods=['GET', 'POST'])
bgstack15