Skip to content

Commit

Permalink
set connection to none
Browse files Browse the repository at this point in the history
  • Loading branch information
abyesilyurt committed May 21, 2024
1 parent cba3313 commit 36ab1c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/syft/src/syft/store/sqlite_document_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 36ab1c0

Please sign in to comment.