(url, exc)
| 2706 | return title, content |
| 2707 | |
| 2708 | def html_error(url, exc): |
| 2709 | heading = html.heading( |
| 2710 | '<strong class="title">Error</strong>', |
| 2711 | ) |
| 2712 | contents = '<br>'.join(html.escape(line) for line in |
| 2713 | format_exception_only(type(exc), exc)) |
| 2714 | contents = heading + html.bigsection(url, 'error', contents) |
| 2715 | return "Error - %s" % url, contents |
| 2716 | |
| 2717 | def get_html_page(url): |
| 2718 | """Generate an HTML page for url.""" |
no test coverage detected