feat: add api of body record 10
continuous-integration/drone/push Build is passing Details

This commit is contained in:
BryantHe 2023-08-12 20:59:00 +08:00
parent 226e5c6891
commit 019ea67043
1 changed files with 1 additions and 1 deletions

View File

@ -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'}