diff options
Diffstat (limited to 'src/web/controllers/abstract.py')
-rw-r--r-- | src/web/controllers/abstract.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/web/controllers/abstract.py b/src/web/controllers/abstract.py index 2a2e6f9f..5cebd39e 100644 --- a/src/web/controllers/abstract.py +++ b/src/web/controllers/abstract.py @@ -91,7 +91,10 @@ class AbstractController: obj = self._db_cls(**attrs) db.session.add(obj) - db.session.commit() + try: + db.session.commit() + except Exception as e: + logger.exception(str(e)) return obj def read(self, **filters): |