From 6e0fe109d79a8ad3f6e1d0210209340e432cf56e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 25 Aug 2021 19:38:37 +0200 Subject: [PATCH] fdfd --- files/routes/comments.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 33cf16fe33..3994a407e3 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -469,8 +469,7 @@ def api_comment(v): for x in notify_users: n = Notification(comment_id=c.id, user_id=x) g.db.add(n) - try: g.db.flush() - except: g.db.rollback() + g.db.flush() if parent.author.id != v.id: try: