Run blacken-docs, refs #1770

pull/1772/head
Simon Willison 2022-07-17 18:03:33 -07:00
rodzic 6d5e195547
commit ed1ebc0f1d
1 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -1213,7 +1213,9 @@ The function can alternatively return an awaitable function if it needs to make
def forbidden(datasette):
async def inner():
return Response.html(
await datasette.render_template("render_message.html", request=request)
await datasette.render_template(
"render_message.html", request=request
)
)
return inner
@ -1249,10 +1251,14 @@ This example logs an error to `Sentry <https://sentry.io/>`__ and then renders a
@hookimpl
def handle_exception(datasette, exception):
sentry_sdk.capture_exception(exception)
async def inner():
return Response.html(
await datasette.render_template("custom_error.html", request=request)
await datasette.render_template(
"custom_error.html", request=request
)
)
return inner
.. _plugin_hook_menu_links: