diff --git a/ydb/aio/table.py b/ydb/aio/table.py index 274716ed..a60f210a 100644 --- a/ydb/aio/table.py +++ b/ydb/aio/table.py @@ -154,7 +154,7 @@ def __init__(self, driver, table_client_settings=None): self._pool: Optional[SessionPool] = None def __del__(self): - asyncio.get_running_loop.call_soon(self._stop_pool_if_needed) + asyncio.get_running_loop().call_soon(self._stop_pool_if_needed) def session(self): return Session(self._driver, self._table_client_settings)