MCPcopy
hub / github.com/encode/starlette / generate_plain_text

Method generate_plain_text

starlette/middleware/errors.py:246–247  ·  view source on GitHub ↗
(self, exc: Exception)

Source from the content-addressed store, hash-verified

244 return TEMPLATE.format(styles=STYLES, js=JS, error=error, exc_html=exc_html)
245
246 def generate_plain_text(self, exc: Exception) -> str:
247 return "".join(traceback.format_exception(type(exc), exc, exc.__traceback__))
248
249 def debug_response(self, request: Request, exc: Exception) -> Response:
250 accept = request.headers.get("accept", "")

Callers 1

debug_responseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected