From 36ab1c0e5fe62aaa10cfcb5c3a80dd93c6e3d545 Mon Sep 17 00:00:00 2001 From: Aziz Berkay Yesilyurt Date: Tue, 21 May 2024 10:37:00 +0200 Subject: [PATCH] set connection to none --- packages/syft/src/syft/store/sqlite_document_store.py | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/syft/src/syft/store/sqlite_document_store.py b/packages/syft/src/syft/store/sqlite_document_store.py index 579da5082b9..b39252ee0b4 100644 --- a/packages/syft/src/syft/store/sqlite_document_store.py +++ b/packages/syft/src/syft/store/sqlite_document_store.py @@ -243,6 +243,7 @@ def __iter__(self) -> Any: def __del__(self) -> None: if hasattr(self._local, "connection"): self._local.connection.close() + self._local.connection = None @serializable()