fix: update body record api
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
923c5f1a6d
commit
72bee4d3e1
|
@ -34,7 +34,7 @@ def get_record(record_id):
|
|||
try:
|
||||
result = rpc.body_record.get_one(record_id)
|
||||
except Exception as e:
|
||||
raise BodyRecordNotFound()
|
||||
raise BodyRecordNotFound(extra_data={'error_docs': str(e)})
|
||||
return result
|
||||
|
||||
|
||||
|
@ -48,5 +48,5 @@ def get_records(query_data):
|
|||
sort = query_data.get('sort', '-create_time')
|
||||
results = rpc.body_record.get_all_by_user(session['user_id'], sort)
|
||||
except Exception as e:
|
||||
raise BodyRecordNotFound()
|
||||
raise BodyRecordNotFound(extra_data={'error_docs': str(e)})
|
||||
return {'records': results}
|
||||
|
|
Loading…
Reference in New Issue