Skip to content

Commit

Permalink
Run blacken-docs, refs #1770
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jul 18, 2022
1 parent 6d5e195 commit ed1ebc0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/plugin_hooks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ed1ebc0

Please sign in to comment.