fix(proxy): add mutable-ok suppressions for exception detail dicts

This commit is contained in:
amasen02 2026-09-06 10:25:58 +05:30
parent 4a3422f644
commit f5f65d3d7b

View file

@ -1501,7 +1501,7 @@ async def _update_single_user_helper(
if isinstance(_caller_metadata, dict) and "blocked" in _caller_metadata:
raise HTTPException(
status_code=403,
detail={
detail={ # mutable-ok: http exception detail
"error": "Non-admin users cannot modify 'blocked' on their own record. Contact your proxy admin."
},
)
@ -1511,7 +1511,7 @@ async def _update_single_user_helper(
if isinstance(_parsed_metadata, dict) and "blocked" in _parsed_metadata:
raise HTTPException(
status_code=403,
detail={
detail={ # mutable-ok: http exception detail
"error": "Non-admin users cannot modify 'blocked' on their own record. Contact your proxy admin."
},
)