From a78157208e593cc0810037b65c5f76b5dd7ddf0e Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 20 Aug 2023 19:03:36 +0300 Subject: [PATCH] remove now-unnecessary line relating to autoflush --- files/routes/votes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index 44743dcfeb..67d0bd7fc7 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -110,8 +110,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): else: return 0 - try: return votes.count() - except: abort(500) + return votes.count() target.upvotes = get_vote_count(1, False) target.downvotes = get_vote_count(-1, False)