linting fix
This commit is contained in:
parent
c3658485b4
commit
93416cccc2
1 changed files with 2 additions and 2 deletions
|
|
@ -271,13 +271,13 @@ class KuzuAdapter(GraphDBInterface):
|
||||||
del self.db
|
del self.db
|
||||||
self.db = None
|
self.db = None
|
||||||
self._is_closed = True
|
self._is_closed = True
|
||||||
logger.info(f"Kuzu database closed successfully")
|
logger.info("Kuzu database closed successfully")
|
||||||
|
|
||||||
def reopen(self):
|
def reopen(self):
|
||||||
if self._is_closed:
|
if self._is_closed:
|
||||||
self._is_closed = False
|
self._is_closed = False
|
||||||
self._initialize_connection()
|
self._initialize_connection()
|
||||||
logger.info(f"Kuzu database re-opened successfully")
|
logger.info("Kuzu database re-opened successfully")
|
||||||
|
|
||||||
@asynccontextmanager
|
@asynccontextmanager
|
||||||
async def get_session(self):
|
async def get_session(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue