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

Allow to pass errors through in Quart.run as in Flask.run (via passthrough_errors=True) #356

Open
jakubsvehla opened this issue Sep 7, 2024 · 0 comments

Comments

@jakubsvehla
Copy link

It would be great if Quart.run was able to pass through errors at the server level and let the server crash. This option would be super useful in debugging and improve the developer experience since a lot of debuggers (e.g., in VS Code or PyCharm) allow debugging unhandled exceptions automatically without setting breakpoints. Currently, all exceptions are handled at the server level so they won't bubble up to the debugger.

Flask.run allows doing that when setting passthrough_errors=True (together with use_debugger=False), which is further passed to werkzeug.serving.run_simple (https://werkzeug.palletsprojects.com/en/3.0.x/serving/#werkzeug.serving.run_simple).

Since Quart is using Hypercorn it would probably require changes to both Quart and Hypercorn.

Quart itself allows errors to be passed through on the app level via the PROPAGATE_EXCEPTIONS config, but not on the server level.

Thanks!

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

No branches or pull requests

1 participant