From b3c217c56659108c5ac068b482225b160cc4370d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=B2=A0=ED=99=8D?= <111139476+parkcheolhong@users.noreply.github.com> Date: Fri, 8 May 2026 21:21:28 +0900 Subject: [PATCH] Potential fix for code scanning alert no. 4: Information exposure through an exception Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- backend/marketplace/router.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/marketplace/router.py b/backend/marketplace/router.py index 6d8e5b4..55cda54 100644 --- a/backend/marketplace/router.py +++ b/backend/marketplace/router.py @@ -1059,9 +1059,10 @@ def get_ad_queue_runtime_status() -> Dict[str, Dict[str, Any]]: if redis_client is not None: try: queue_depth = int(redis_client.llen(VIDEO_RENDER_QUEUE_NAME)) - except RedisError as exc: + except RedisError: + logger.exception("Failed to read Redis queue depth for health diagnostics") redis_available = False - redis_error = str(exc) + redis_error = "redis_queue_unavailable" with _ad_worker_lock: started_at = _ad_worker_runtime.get("started_at")