diff --git a/README.md b/README.md index dbed06b9..285c1f19 100644 --- a/README.md +++ b/README.md @@ -370,7 +370,7 @@ See [ScanVertexEdgeExample.py](example/ScanVertexEdgeExample.py) for more detail | Nebula-Python Version | Compatible NebulaGraph Versions | Notes | | --------------------- | ------------------------------- | ---------------------------------------------------------- | -| 3.8.2 | 3.x | Highly recommended. Latest release for NebulaGraph 3.x series. | +| 3.8.3 | 3.x | Highly recommended. Latest release for NebulaGraph 3.x series. | | master | master | Includes recent changes. Not yet released. | | 3.0.0 ~ 3.5.1 | 3.x | Compatible with any released version within the NebulaGraph 3.x series. | | 2.6.0 | 2.6.0, 2.6.1 | | diff --git a/nebula3/gclient/net/SessionPool.py b/nebula3/gclient/net/SessionPool.py index a2b9a913..cc3bf04a 100644 --- a/nebula3/gclient/net/SessionPool.py +++ b/nebula3/gclient/net/SessionPool.py @@ -70,7 +70,8 @@ def __init__(self, username, password, space_name, addresses): self._close = False def __del__(self): - self.close() + if hasattr(self, '_lock'): + self.close() def init( self, diff --git a/pyproject.toml b/pyproject.toml index 5f399f77..d093e4be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nebula3-python" -version = "3.8.2" +version = "3.8.3" description = "Python client for NebulaGraph v3" authors = [ {name = "vesoft-inc", email = "info@vesoft.com"}, diff --git a/setup.py b/setup.py index 270e136c..439a5d8b 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ setup( name="nebula3-python", - version="3.8.2", + version="3.8.3", license="Apache 2.0", author="vesoft-inc", author_email="info@vesoft.com",