mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
Merge af3139d97f into 4fade39c90
This commit is contained in:
commit
a81b12fc25
2 changed files with 4 additions and 4 deletions
|
|
@ -252,7 +252,7 @@ def load_code_assist(
|
|||
cloudaicompanion_project=project_id,
|
||||
)
|
||||
last_err = exc
|
||||
logger.warning("loadCodeAssist failed on %s: %s", endpoint, exc)
|
||||
logger.warning("loadCodeAssist failed on %s: %s", endpoint, exc, exc_info=True)
|
||||
continue
|
||||
if last_err:
|
||||
raise last_err
|
||||
|
|
@ -327,7 +327,7 @@ def onboard_user(
|
|||
try:
|
||||
poll_resp = _post_json(poll_url, {}, access_token, user_agent_model=user_agent_model)
|
||||
except CodeAssistError as exc:
|
||||
logger.warning("Onboarding poll attempt %d failed: %s", attempt + 1, exc)
|
||||
logger.warning("Onboarding poll attempt %d failed: %s", attempt + 1, exc, exc_info=True)
|
||||
continue
|
||||
if poll_resp.get("done"):
|
||||
return poll_resp
|
||||
|
|
|
|||
|
|
@ -475,7 +475,7 @@ def load_credentials() -> Optional[GoogleCredentials]:
|
|||
raw = path.read_text(encoding="utf-8")
|
||||
data = json.loads(raw)
|
||||
except (json.JSONDecodeError, OSError, IOError) as exc:
|
||||
logger.warning("Failed to read Google OAuth credentials at %s: %s", path, exc)
|
||||
logger.warning("Failed to read Google OAuth credentials at %s: %s", path, exc, exc_info=True)
|
||||
return None
|
||||
if not isinstance(data, dict):
|
||||
return None
|
||||
|
|
@ -518,7 +518,7 @@ def clear_credentials() -> None:
|
|||
except FileNotFoundError:
|
||||
pass
|
||||
except OSError as exc:
|
||||
logger.warning("Failed to remove Google OAuth credentials at %s: %s", path, exc)
|
||||
logger.warning("Failed to remove Google OAuth credentials at %s: %s", path, exc, exc_info=True)
|
||||
|
||||
|
||||
# =============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue