forked from rDrama/rDrama
1
0
Fork 0

silence lock error

master
Aevann 2023-07-26 15:12:37 +03:00
parent 5a7a489968
commit 935cd1d116
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@ def _add_post_view(pid):
p.views += 1
db.add(p)
db.commit()
try: db.commit()
except: db.rollback()
db.close()
stdout.flush()