aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-09 13:30:42 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-09 13:30:42 +0100
commitbe6398ccfe9c57d0642a0ac8eb62dcae2b7b5d23 (patch)
treebdfc9e2b3a2f73763f0aa0891c0b9c990ce3139c /pyaggr3g470r
parentTest (diff)
downloadnewspipe-be6398ccfe9c57d0642a0ac8eb62dcae2b7b5d23.tar.gz
newspipe-be6398ccfe9c57d0642a0ac8eb62dcae2b7b5d23.tar.bz2
newspipe-be6398ccfe9c57d0642a0ac8eb62dcae2b7b5d23.zip
Test
Diffstat (limited to 'pyaggr3g470r')
-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