forked from rDrama/rDrama
use abort in vote
parent
190472933a
commit
af52afb408
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue