ownphotos icon indicating copy to clipboard operation
ownphotos copied to clipboard

Return proper response (not 500) for some face apis

Open hooram opened this issue 6 years ago • 1 comments

URLs

  • /api/facetolabel/
  • /api/trainfaces/

should return 200 when there is no labeled faces.

https://github.com/hooram/ownphotos-backend/blob/232f43eec933e591fab48dbe4df37bd181dba04b/api/face_classify.py#L22

https://github.com/hooram/ownphotos-backend/blob/232f43eec933e591fab48dbe4df37bd181dba04b/api/face_classify.py#L52

hooram avatar Sep 04 '17 07:09 hooram

404 not found could make sense too.

luckydonald avatar Nov 14 '18 03:11 luckydonald