psu: commit transaction when closing connection
This commit is contained in:
parent
0de7ef2550
commit
aa0443d0b5
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ def closeConnection():
|
|||
global conn
|
||||
if conn is not None:
|
||||
print('closing ZODB connection...')
|
||||
commit()
|
||||
conn.close()
|
||||
conn = None
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue