Conversation
|
Please verify that this modified truth table matches the behavior in Flask. |
|
The
So Flask’s truth table (when ignoring the
The difference is that in Flask, setting So the question is whether we want to replicate Flask’s behavior or simply fix the bug. I think both behaviors make sense but the previous Quart’s behavior (before this fix) is in my opinion clearly wrong since it does not propagate exceptions when the You can find the relevant code in Flask here: https://github.com/pallets/flask/blob/bc098406af9537aacc436cb2ea777fbc9ff4c5aa/src/flask/app.py#L841 As far as I know, there are no tests for the interaction of the two flags. They are tested independently here: https://github.com/pallets/flask/blob/bc098406af9537aacc436cb2ea777fbc9ff4c5aa/tests/test_basic.py#L1574 |
Fixes propagating exceptions when the
PROPAGATE_EXCEPTIONSconfig setting is set toTrueby fixing exception handling inASGIHTTPConnection. Currently, whenPROPAGATE_EXCEPTIONSis set toTrueit returns the traceback as HTML instead of propagating the exception.PROPAGATE_EXCEPTIONSconfig setting does not work #383