From 6f12cca6f902f140d8c65acc9caf3a82319c03e9 Mon Sep 17 00:00:00 2001 From: wuaho Date: Thu, 3 Jun 2021 09:35:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=BA=8B=E4=BB=B6=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E6=8B=86=E5=88=86=EF=BC=8Capi=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index abc68f6..04b5c84 100644 --- a/main.py +++ b/main.py @@ -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)