From bc9d9e51c9ad19efa862925f38ee2a0a45c8f6ba Mon Sep 17 00:00:00 2001 From: giles Date: Fri, 6 Mar 2026 21:14:19 +0000 Subject: [PATCH] Log page registry build errors instead of silently swallowing Co-Authored-By: Claude Opus 4.6 --- shared/sx/helpers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shared/sx/helpers.py b/shared/sx/helpers.py index 98a1726..255c98d 100644 --- a/shared/sx/helpers.py +++ b/shared/sx/helpers.py @@ -758,8 +758,9 @@ def sx_page(ctx: dict, page_sx: str, *, try: from quart import current_app pages_sx = _build_pages_sx(current_app.name) - except Exception: - pass + except Exception as e: + import logging + logging.getLogger("sx").warning("Failed to build page registry: %s", e) return _SX_PAGE_TEMPLATE.format( title=_html_escape(title),