We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 933b4b3 commit 8594413Copy full SHA for 8594413
src/backend/base/langflow/components/data/google_oauth_token.py
@@ -67,8 +67,7 @@ def build_output(self) -> Data:
67
token_path = Path("token.json")
68
69
if token_path.exists():
70
- with token_path.open(mode="r", encoding="utf-8") as token_file:
71
- creds = Credentials.from_authorized_user_file(str(token_path), scopes)
+ creds = Credentials.from_authorized_user_file(str(token_path), scopes)
72
73
if not creds or not creds.valid:
74
if creds and creds.expired and creds.refresh_token:
0 commit comments