(url, exc)
| 2610 | return title, content |
| 2611 | |
| 2612 | def html_error(url, exc): |
| 2613 | heading = html.heading( |
| 2614 | '<strong class="title">Error</strong>', |
| 2615 | ) |
| 2616 | contents = '<br>'.join(html.escape(line) for line in |
| 2617 | format_exception_only(type(exc), exc)) |
| 2618 | contents = heading + html.bigsection(url, 'error', contents) |
| 2619 | return "Error - %s" % url, contents |
| 2620 | |
| 2621 | def get_html_page(url): |
| 2622 | """Generate an HTML page for url.""" |
no test coverage detected
searching dependent graphs…