forked from MarseyWorld/MarseyWorld
silence lock error
parent
5a7a489968
commit
935cd1d116
|
@ -37,7 +37,8 @@ def _add_post_view(pid):
|
||||||
p.views += 1
|
p.views += 1
|
||||||
db.add(p)
|
db.add(p)
|
||||||
|
|
||||||
db.commit()
|
try: db.commit()
|
||||||
|
except: db.rollback()
|
||||||
db.close()
|
db.close()
|
||||||
stdout.flush()
|
stdout.flush()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue