(url, exc)
| 2658 | return title, content |
| 2659 | |
| 2660 | def html_error(url, exc): |
| 2661 | heading = html.heading( |
| 2662 | '<strong class="title">Error</strong>', |
| 2663 | ) |
| 2664 | contents = '<br>'.join(html.escape(line) for line in |
| 2665 | format_exception_only(type(exc), exc)) |
| 2666 | contents = heading + html.bigsection(url, 'error', contents) |
| 2667 | return "Error - %s" % url, contents |
| 2668 | |
| 2669 | def get_html_page(url): |
| 2670 | """Generate an HTML page for url.""" |
no test coverage detected