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:
John Ralls committed 2026-04-22 11:28:31 -07:00
1 parent d4c6101c6c
commit bdbc08e0ab
1 file changed
+1
+1
View File
@@ -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