mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-10-25 07:37:39 -05:00
Python Bindings: Destroy the QofSession in the Python Session dtor.
Failing to do so can leave a DBI database locked, see https://github.com/Gnucash/gnucash/pull/2203
This commit is contained in:
1 parent
d4c6101c6c
commit
bdbc08e0ab
1 file changed
+1
@@ -372,6 +372,7 @@ class Session(GnuCashCoreClass):
|
||||
if not exc_type:
|
||||
self.save()
|
||||
self.end()
|
||||
self.destroy()
|
||||
|
||||
def raise_backend_errors(self, called_function="qof_session function"):
|
||||
"""Raises a GnuCashBackendException if there are outstanding
|
||||
|
||||
Reference in new issue
Block a user