Use ProxyAuthenticationException in get_key_object for token not found

This commit is contained in:
rahul dhanawade 2026-02-05 23:24:47 +05:30
parent 9a4cfc404b
commit 24c39648f0

View file

@ -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
),