Skip to content

Commit de1b155

Browse files
authored
Merge pull request #507 from ydb-platform/vgvoleg-patch-2
Update table.py
2 parents ec12288 + 96d0d50 commit de1b155

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ydb/aio/table.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ def __init__(self, driver, table_client_settings=None):
154154
self._pool: Optional[SessionPool] = None
155155

156156
def __del__(self):
157-
asyncio.get_running_loop().call_soon(self._stop_pool_if_needed)
157+
try:
158+
asyncio.get_running_loop().call_soon(self._stop_pool_if_needed)
159+
except Exception:
160+
pass
158161

159162
def session(self):
160163
return Session(self._driver, self._table_client_settings)

0 commit comments

Comments
 (0)