PunimTag Web Application - Major Feature Release #1
@ -486,7 +486,6 @@ jobs:
|
||||
--no-banner \
|
||||
--redact \
|
||||
--verbose \
|
||||
--platform git.levkin.ca \
|
||||
--report-path gitleaks-report.json \
|
||||
--exit-code 0
|
||||
continue-on-error: true
|
||||
|
||||
@ -266,9 +266,17 @@ def accept_matches(
|
||||
from backend.api.auth import get_current_user_with_id
|
||||
|
||||
user_id = current_user["user_id"]
|
||||
identified_count, updated_count = accept_auto_match_matches(
|
||||
db, person_id, request.face_ids, user_id=user_id
|
||||
)
|
||||
try:
|
||||
identified_count, updated_count = accept_auto_match_matches(
|
||||
db, person_id, request.face_ids, user_id=user_id
|
||||
)
|
||||
except ValueError as e:
|
||||
if "not found" in str(e).lower():
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_404_NOT_FOUND,
|
||||
detail=str(e)
|
||||
)
|
||||
raise
|
||||
|
||||
return IdentifyFaceResponse(
|
||||
identified_face_ids=request.face_ids,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user