Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Application Hooks - Text and example function differs in arguments #1891

Open
legout opened this issue Jun 28, 2023 · 0 comments
Open
Labels
Documentation 📚 This is related to documentation Good First Issue This is good for newcomers to take on

Comments

@legout
Copy link

legout commented Jun 28, 2023

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

  • You can sponsor this specific effort via a Polar.sh pledge below
  • We receive the pledge once the issue is completed & verified
Fund with Polar
@legout legout added the Documentation 📚 This is related to documentation label Jun 28, 2023
@provinzkraut provinzkraut added this to the 2.0 milestone Jul 17, 2023
@provinzkraut provinzkraut added the Good First Issue This is good for newcomers to take on label Jul 17, 2023
@provinzkraut provinzkraut removed this from the 2.0 milestone Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation 📚 This is related to documentation Good First Issue This is good for newcomers to take on
Projects
Status: Backlog
Development

No branches or pull requests

2 participants