quart
quart copied to clipboard
Debug mode isn't working
In debug mode when creating a route which has an error in it (such as a division by zero error), the error page with stack trace is not shown.
Follow the official QuickStart: https://quart.palletsprojects.com/en/latest/tutorials/quickstart.html
Add this route
@app.route('/err')
async def err():
return str(1/0)
Navigate to /err page.
I expect to navigate to that page and see a nicely formatted error stack trace. Instead, I get a generic browser generated HTTP ERROR 500 message.
Environment: Python 3.12.6 Quart 0.19.6
Set TESTING =True in the app config. That's what works currently, there's an open pr fix for this