From ac8184e17fcdb47dda2f65321d332a868c3f9eaa Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 31 Oct 2016 15:23:39 +0100 Subject: test --- src/web/controllers/abstract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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() -- cgit