查询训练报告接口

This commit is contained in:
2025-03-11 11:42:09 +08:00
parent 7d736c4ac4
commit f49a6caf10
10 changed files with 143 additions and 39 deletions

View File

@ -7,4 +7,9 @@ from app import my_app
@my_app.exception_handlers(HTTPException)
async def http_exception(request: Request, he: HTTPException):
return response_error(request.url + "出现异常:" + he.detail)
return response_error(request.url + "出现异常:" + he.detail)
@my_app.exception_handlers(Exception)
async def http_exception(request: Request, he: Exception):
return response_error(request.url + "出现异常:" + he.detail)