Исправления после проверки: кэш, cursor, обработка ошибок

This commit is contained in:
Queenfish
2026-10-15 19:46:32 +03:00
parent 6bfbcf74fc
commit 95d408986e
8 changed files with 179 additions and 23 deletions
+3 -1
View File
@@ -45,7 +45,9 @@ async def current_user(
rid = request.state.request_id
try:
user, _ = await get_current_user(request, authorization)
except HTTPException:
except HTTPException as exc:
if exc.status_code == 503:
return error_response(503, "unavailable", "auth store unavailable", rid)
return error_response(
401,
"unauthorized",