Skip to content

Commit

Permalink
chore: Replace ValueError with logger.warning for missing GOOGLE_APPL…
Browse files Browse the repository at this point in the history
…ICATION_CREDENTIALS environment variable (#1415)

Co-authored-by: Théo Monnom <[email protected]>
  • Loading branch information
hironow and theomonnom authored Jan 27, 2025
1 parent 489f786 commit 4ce88f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-spiders-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-plugins-google": patch
---

chore: Replace ValueError with logger.warning for missing GOOGLE_APPLICATION_CREDENTIALS environment variable
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def __init__(
self._api_key = api_key or os.environ.get("GOOGLE_API_KEY", None)
_gac = os.environ.get("GOOGLE_APPLICATION_CREDENTIALS")
if _gac is None:
raise ValueError(
"`GOOGLE_APPLICATION_CREDENTIALS` environment variable is not set. please set it to the path of the service account key file."
logger.warning(
"`GOOGLE_APPLICATION_CREDENTIALS` environment variable is not set. please set it to the path of the service account key file. Otherwise, use any of the other Google Cloud auth methods."
)

if vertexai:
Expand Down

0 comments on commit 4ce88f2

Please sign in to comment.