(fix) raise ProxyException

This commit is contained in:
ishaan-jaff 2024-01-23 13:59:35 -08:00
parent cedeb1ffbe
commit f0e17a4322

View file

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