获取事件模型拆分,api日志

This commit is contained in:
wuaho 2021-06-03 09:35:49 +08:00
parent 2ea13a340b
commit 6f12cca6f9

View File

@ -82,7 +82,7 @@ app.add_middleware(
@app.exception_handler(RequestValidationError)
async def validation_exception_handler(request, exc):
return Response(schemas.Msg(code='-4', msg='服务器错误', data=str(exc)), status_code=400)
return Response(schemas.Msg(code='-4', msg='请求错误', data=str(exc)), status_code=400)
@app.exception_handler(Exception)