aboutsummaryrefslogtreecommitdiff
path: root/src/web/controllers/abstract.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-31 15:23:39 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-31 15:23:39 +0100
commitac8184e17fcdb47dda2f65321d332a868c3f9eaa (patch)
tree2cc8e44360a614ecdcd11f0a20b95870edcf5213 /src/web/controllers/abstract.py
parentlog this (diff)
downloadnewspipe-ac8184e17fcdb47dda2f65321d332a868c3f9eaa.tar.gz
newspipe-ac8184e17fcdb47dda2f65321d332a868c3f9eaa.tar.bz2
newspipe-ac8184e17fcdb47dda2f65321d332a868c3f9eaa.zip
test
Diffstat (limited to 'src/web/controllers/abstract.py')
-rw-r--r--src/web/controllers/abstract.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/controllers/abstract.py b/src/web/controllers/abstract.py
index 7e167722..570fe062 100644
--- a/src/web/controllers/abstract.py
+++ b/src/web/controllers/abstract.py
@@ -103,8 +103,8 @@ class AbstractController:
def update(self, filters, attrs):
assert attrs, "attributes to update must not be empty"
- result = self._get(**filters).update(attrs, synchronize_session=False)
try:
+ result = self._get(**filters).update(attrs, synchronize_session=False)
db.session.commit()
except Exception as e:
db.session.rollback()
bgstack15