mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-29 06:31:32 +00:00
fix(skills): add timeout to Google OAuth urlopen calls
This commit is contained in:
parent
b8a9cbd18c
commit
87c6edc1d0
4 changed files with 53 additions and 3 deletions
|
|
@ -586,7 +586,8 @@ def revoke(email: Optional[str] = None) -> None:
|
|||
f"https://oauth2.googleapis.com/revoke?token={creds.token}",
|
||||
method="POST",
|
||||
headers={"Content-Type": "application/x-www-form-urlencoded"},
|
||||
)
|
||||
),
|
||||
timeout=15,
|
||||
)
|
||||
print("Token revoked with Google.")
|
||||
except Exception as exc:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue