mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-17 23:51:30 +00:00
(sap) fix after bot review
This commit is contained in:
parent
9b26087bca
commit
a7d23d638d
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ def get_token_creator(
|
|||
expiry_date = datetime.now(timezone.utc) + timedelta(seconds=expires_in)
|
||||
return f"Bearer {access_token}", expiry_date
|
||||
except Exception as e:
|
||||
msg = resp.text if resp is not None else str(e)
|
||||
msg = resp.text if resp is not None else getattr(e, "text", str(e))
|
||||
raise RuntimeError(f"Token request failed: {msg}") from e
|
||||
|
||||
def _fetch_token() -> tuple[str, datetime]:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue