only log exception to make codeql happy

This commit is contained in:
Josh Hawkins 2025-04-23 18:12:42 -05:00
parent f74b229dcb
commit 4baad9dfa2

View File

@ -280,9 +280,13 @@ def rename_face(request: Request, old_name: str, body: RenameFaceBody):
status_code=200,
)
except ValueError as e:
logger.error(e)
return JSONResponse(
status_code=400,
content={"message": str(e), "success": False},
content={
"message": "Error renaming face. Check Frigate logs.",
"success": False,
},
)