mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-31 13:03:49 +08:00
Refactor: reformat all code for lefthook using ruff and gofmt (#16585)
This commit is contained in:
@@ -67,9 +67,7 @@ def get_google_creds(
|
||||
try:
|
||||
credentials_dict = ensure_oauth_token_dict(credentials_dict, source)
|
||||
except Exception as exc:
|
||||
raise PermissionError(
|
||||
"Google Drive OAuth credentials are incomplete. Please finish the OAuth flow to generate access tokens."
|
||||
) from exc
|
||||
raise PermissionError("Google Drive OAuth credentials are incomplete. Please finish the OAuth flow to generate access tokens.") from exc
|
||||
credentials_dict_str = json.dumps(credentials_dict)
|
||||
regenerated_from_client_secret = True
|
||||
|
||||
|
||||
@@ -223,4 +223,4 @@ def clean_string(text: str | None) -> str | None:
|
||||
except UnicodeEncodeError:
|
||||
text = text.encode("utf-8", errors="ignore").decode("utf-8")
|
||||
|
||||
return text
|
||||
return text
|
||||
|
||||
Reference in New Issue
Block a user