mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 04:57:42 +03:00
only log exception to make codeql happy
This commit is contained in:
parent
f74b229dcb
commit
4baad9dfa2
@ -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,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user