[bugfix] Fix critical bug when reporting for all paths where handler.create_error_response is used (#34516)

Signed-off-by: Stanislav Kirillov <stas@nebius.com>
Co-authored-by: Stanislav Kirillov <stas@nebius.com>
Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
This commit is contained in:
Stanislav Kirillov
2026-02-14 23:24:25 -08:00
committed by GitHub
co-authored by Stanislav Kirillov Cyrus Leung
parent 98bcc6ca59
commit 50dbd6c9e6
9 changed files with 14 additions and 14 deletions
@@ -35,7 +35,7 @@ async def create_classify(request: ClassificationRequest, raw_request: Request):
try:
generator = await handler.create_classify(request, raw_request)
except Exception as e:
return handler.create_error_response(e)
generator = handler.create_error_response(e)
if isinstance(generator, ErrorResponse):
return JSONResponse(