aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyaggr3g470r/views/views.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py
index cb984a9c..579d1e1b 100644
--- a/pyaggr3g470r/views/views.py
+++ b/pyaggr3g470r/views/views.py
@@ -581,7 +581,10 @@ def edit_feed(feed_id=None):
g.user.feeds.append(new_feed)
#user.feeds = sorted(user.feeds, key=lambda t: t.title.lower())
print("Test 3")
- db.session.commit()
+ try:
+ db.session.commit()
+ except Ecxeption as e:
+ print(e)
print("Test 4")
flash(gettext('Feed successfully created.'), 'success')
bgstack15