Skip to content

Commit 96d0d50

Browse files
authored
Update table.py
1 parent ec12288 commit 96d0d50

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)