log exception instead of return in endpoint

This commit is contained in:
Josh Hawkins 2025-07-03 10:55:49 -05:00
parent f553c59517
commit e0c70a465f

View File

@ -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,
)