use abort in vote

master
Aevann 2023-07-19 13:00:59 +03:00
parent 190472933a
commit af52afb408
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
return 0
try: g.db.flush()
except: g.db.rollback()
except: abort(500)
return votes.count()