Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/nebulagraph_python/client/_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,22 +494,22 @@ async def authenticate(
request, timeout=self.config.request_timeout
)
except grpc.aio.AioRpcError as e:
self.close()
await self.close()
logger.error(
f"Async RPC error during authenticate: {e.code()} {e.details()}"
)
raise AuthenticatingError(
f"RPC error during authentication: {e.details()}"
) from e
except Exception as e: # Catch other potential errors
self.close()
await self.close()
logger.error(f"Unexpected error during async authenticate: {e}")
raise AuthenticatingError(
"Unexpected error during async authentication"
) from e

if response.status.code != b"00000":
self.close()
await self.close()
raise NebulaGraphRemoteError(
code=ErrorCode(response.status.code.decode("utf-8")),
message=response.status.message.decode("utf-8"),
Expand Down