(self, exc: Exception)
| 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", "") |