Log page registry build errors instead of silently swallowing
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -758,8 +758,9 @@ def sx_page(ctx: dict, page_sx: str, *,
|
|||||||
try:
|
try:
|
||||||
from quart import current_app
|
from quart import current_app
|
||||||
pages_sx = _build_pages_sx(current_app.name)
|
pages_sx = _build_pages_sx(current_app.name)
|
||||||
except Exception:
|
except Exception as e:
|
||||||
pass
|
import logging
|
||||||
|
logging.getLogger("sx").warning("Failed to build page registry: %s", e)
|
||||||
|
|
||||||
return _SX_PAGE_TEMPLATE.format(
|
return _SX_PAGE_TEMPLATE.format(
|
||||||
title=_html_escape(title),
|
title=_html_escape(title),
|
||||||
|
|||||||
Reference in New Issue
Block a user