From 019ea670436ca782133bd9f30cd9640fe70226b0 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Sat, 12 Aug 2023 20:59:00 +0800 Subject: [PATCH] feat: add api of body record 10 --- app/api/v1/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/v1/record.py b/app/api/v1/record.py index ef2fea5..9edabd6 100644 --- a/app/api/v1/record.py +++ b/app/api/v1/record.py @@ -20,7 +20,7 @@ def add_record(json_data): weight=json_data['weight'], bmi=json_data['bmi']) except Exception as e: - raise AddBodyRecordError() + raise AddBodyRecordError(extra_data={'error_docs': str(e)}) return {'msg': 'add body record success'}