mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
Use ProxyAuthenticationException in get_key_object for token not found
This commit is contained in:
parent
9a4cfc404b
commit
24c39648f0
1 changed files with 1 additions and 1 deletions
|
|
@ -1798,7 +1798,7 @@ async def get_key_object(
|
|||
)
|
||||
|
||||
if _valid_token is None:
|
||||
raise ProxyException(
|
||||
raise ProxyAuthenticationException(
|
||||
message="Authentication Error, Invalid proxy server token passed. key={}, not found in db. Create key via `/key/generate` call.".format(
|
||||
hashed_token
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue