server.debug.template_context

Page actions AI-ready formats and sharing
Open LLM text
Share with AI
Ask Claude Ask ChatGPT Ask Gemini Ask Copilot

Kida template error context extraction for debug page.

Kida template error context extraction for debug page.

server.debug.template_context

Name Type Default Description
type
qualified_name
element_type
description
source_file
line_number
is_autodoc
autodoc_element
_autodoc_template
_autodoc_url_path
_autodoc_page_type
title
doc_content_hash

Symbols on this page

_extract_template_context
function
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 Default Description
exc BaseException

View source · /home/runner/work/chirp/chirp/site/../src/chirp/server/debug/template_context.py:1