diff --git a/shared/sx/helpers.py b/shared/sx/helpers.py index ff5ed5a..4d83c54 100644 --- a/shared/sx/helpers.py +++ b/shared/sx/helpers.py @@ -754,13 +754,8 @@ def sx_page(ctx: dict, page_sx: str, *, styles_json = _build_style_dict_json() # Page registry for client-side routing - pages_sx = "" - try: - from quart import current_app - pages_sx = _build_pages_sx(current_app.name) - except Exception as e: - import logging - logging.getLogger("sx").warning("Failed to build page registry: %s", e) + from quart import current_app + pages_sx = _build_pages_sx(current_app.name) return _SX_PAGE_TEMPLATE.format( title=_html_escape(title),