mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 19:54:13 +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"),
|
param=getattr(e, "param", "None"),
|
||||||
code=getattr(e, "status_code", status.HTTP_401_UNAUTHORIZED),
|
code=getattr(e, "status_code", status.HTTP_401_UNAUTHORIZED),
|
||||||
)
|
)
|
||||||
|
elif isinstance(e, ProxyException):
|
||||||
|
raise e
|
||||||
raise ProxyException(
|
raise ProxyException(
|
||||||
message="Authentication Error, " + str(e),
|
message="Authentication Error, " + str(e),
|
||||||
type="auth_error",
|
type="auth_error",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue