Module

server.debug.template_context

Kida template error context extraction for debug page.

Functions

_extract_template_context 1 dict[str, Any] | None
Extract rich context from kida template exceptions. Returns a dict with templa…
def _extract_template_context(exc: BaseException) -> dict[str, Any] | None

Extract rich context from kida template exceptions.

Returns a dict with template-specific error info, or None if the exception is not a kida template error.

Parameters
Name Type Description
exc BaseException
Returns
dict[str, Any] | None