mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 17:17:40 +03:00
log exception instead of return in endpoint
This commit is contained in:
parent
f553c59517
commit
e0c70a465f
@ -1792,8 +1792,9 @@ def get_triggers_status(
|
||||
)
|
||||
|
||||
return {"success": True, "triggers": status}
|
||||
except Exception as e:
|
||||
except Exception as ex:
|
||||
logger.exception(ex)
|
||||
return JSONResponse(
|
||||
content={"success": False, "message": str(e)},
|
||||
status_code=500,
|
||||
content=({"success": False, "message": "Error fetching trigger status"}),
|
||||
status_code=400,
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user