From 245a1e972deee0329c6254496e45dc1959ab6156 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 2 Nov 2016 08:37:40 +0100 Subject: set result to None by default --- src/web/controllers/abstract.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/web/controllers') diff --git a/src/web/controllers/abstract.py b/src/web/controllers/abstract.py index 570fe062..58532660 100644 --- a/src/web/controllers/abstract.py +++ b/src/web/controllers/abstract.py @@ -103,6 +103,7 @@ class AbstractController: def update(self, filters, attrs): assert attrs, "attributes to update must not be empty" + result = None try: result = self._get(**filters).update(attrs, synchronize_session=False) db.session.commit() -- cgit