mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-15 08:21:16 +03:00
Cleanup
This commit is contained in:
parent
ff76bb55fc
commit
e9859f9c55
@ -690,7 +690,8 @@ async def _execute_start_camera_watch(
|
|||||||
zones=zones,
|
zones=zones,
|
||||||
)
|
)
|
||||||
except RuntimeError as e:
|
except RuntimeError as e:
|
||||||
return {"error": str(e)}
|
logger.error("Failed to start VLM watch job: %s", e, exc_info=True)
|
||||||
|
return {"error": "Failed to start VLM watch job."}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"success": True,
|
"success": True,
|
||||||
@ -1178,8 +1179,9 @@ async def start_vlm_monitor(
|
|||||||
zones=body.zones,
|
zones=body.zones,
|
||||||
)
|
)
|
||||||
except RuntimeError as e:
|
except RuntimeError as e:
|
||||||
|
logger.error("Failed to start VLM watch job: %s", e, exc_info=True)
|
||||||
return JSONResponse(
|
return JSONResponse(
|
||||||
content={"success": False, "message": str(e)},
|
content={"success": False, "message": "Failed to start VLM watch job."},
|
||||||
status_code=409,
|
status_code=409,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user