From b0263bbb489e762a245bba6ced18272cd0f47ad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80=C3=AE=C3=97=C3=9A=C3=95=C3=B1?= Date: Wed, 10 Aug 2022 13:58:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=8E=E4=B8=BA=E4=BA=91=E5=92=8C=E8=A7=A3?= =?UTF-8?q?=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_v1/endpoints/interview.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/api_v1/endpoints/interview.py b/api/api_v1/endpoints/interview.py index 25ef32c..4d6f798 100644 --- a/api/api_v1/endpoints/interview.py +++ b/api/api_v1/endpoints/interview.py @@ -319,6 +319,8 @@ async def interview_file_insert( data['work_exp'] = float(true_work_exp.group()) print(data) return schemas.Msg(code=200, msg='ok', data=data) + else: + return schemas.Msg(code=400, msg='解析失败', data=None) except: return schemas.Msg(code=400, msg='解析失败', data=None)