查询训练报告接口
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user