Docs: Application Hooks - Text and example function differs in arguments #1891
Labels
Documentation 📚
This is related to documentation
Good First Issue
This is good for newcomers to take on
Summary
In the documentation about Application Hooks https://docs.litestar.dev/2/usage/the-litestar-app.html#after-exception, you write:
The afterexception hook takes a sync or async callable that is called with three arguments: the exception that occurred, the ASGI scope of the request or websocket connection, and the application state.
However, the example function below has only two arguments (exc and scope) and the application state is accessed from scope["app"].state.
Funding
The text was updated successfully, but these errors were encountered: