mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-28 06:23:07 +00:00
style: fix Black formatting in auth_exception_handler.py
This commit is contained in:
parent
ffaea83292
commit
93df720087
1 changed files with 3 additions and 5 deletions
|
|
@ -80,11 +80,9 @@ class UserAPIKeyAuthExceptionHandler:
|
|||
# flooding error logs with routine access-control events.
|
||||
# All other exceptions are unexpected and logged at ERROR with traceback.
|
||||
_is_expected_auth_failure = (
|
||||
isinstance(e, litellm.BudgetExceededError)
|
||||
) or (
|
||||
isinstance(e, ProxyException) and str(e.code) in ("401", "403")
|
||||
) or (
|
||||
isinstance(e, HTTPException) and e.status_code in (401, 403)
|
||||
(isinstance(e, litellm.BudgetExceededError))
|
||||
or (isinstance(e, ProxyException) and str(e.code) in ("401", "403"))
|
||||
or (isinstance(e, HTTPException) and e.status_code in (401, 403))
|
||||
)
|
||||
if _is_expected_auth_failure:
|
||||
verbose_proxy_logger.warning(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue