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

Exception propagation via PROPAGATE_EXCEPTIONS config setting does not work #383

Open
jakubsvehla opened this issue Nov 15, 2024 · 0 comments · May be fixed by #385
Open

Exception propagation via PROPAGATE_EXCEPTIONS config setting does not work #383

jakubsvehla opened this issue Nov 15, 2024 · 0 comments · May be fixed by #385

Comments

@jakubsvehla
Copy link

When setting the PROPAGATE_EXCEPTIONS config variable to True, the ASGI app does not propagate the exceptions but instead returns the traceback as HTML. The expected behavior is to propagate the exception so that, for example, debuggers can handle it. The propagation works when setting the testing flag to True.

Below is the minimal reproducible example:

from quart import Quart

app = Quart(__name__)
app.config["PROPAGATE_EXCEPTIONS"] = True


@app.route("/")
def bug():
    1 / 0

Environment:

  • Python version: 3.12
  • Quart version: 0.19.8
This was referenced Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant