mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
(fix) raise ProxyException
This commit is contained in:
parent
cedeb1ffbe
commit
f0e17a4322
1 changed files with 2 additions and 0 deletions
|
@ -497,6 +497,8 @@ async def user_api_key_auth(
|
|||
param=getattr(e, "param", "None"),
|
||||
code=getattr(e, "status_code", status.HTTP_401_UNAUTHORIZED),
|
||||
)
|
||||
elif isinstance(e, ProxyException):
|
||||
raise e
|
||||
raise ProxyException(
|
||||
message="Authentication Error, " + str(e),
|
||||
type="auth_error",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue