Skip to content

Commit

Permalink
Fix now awaited coroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
sunbit authored Dec 19, 2024
1 parent 2443a11 commit a47a5e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuclia/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_async_client(kbid: str) -> AsyncNucliaDBClient:
# OSS
ndb = AsyncNucliaDBClient(environment=Environment.OSS, url=kb_obj.url)
else:
if kb_obj.token is None and auth._validate_user_token():
if kb_obj.token is None and await auth._validate_user_token():
# User token auth
ndb = AsyncNucliaDBClient(
environment=Environment.CLOUD,
Expand Down

0 comments on commit a47a5e5

Please sign in to comment.