pallets/flask

PROVIDE_AUTOMATIC_OPTIONS causes KeyError if not set

Closed this issue · 3 comments

https://github.com/pallets/flask/blob/bc098406af9537aacc436cb2ea777fbc9ff4c5aa/src/flask/sansio/app.py#L641C12-L641C86

Simply changing this to : self.config.get("PROVIDE_AUTOMATIC_OPTIONS", False) should resolve the problem.

This change now released is causing upstream trouble in other packages such as Quart:
pallets/quart#371

Duplicate of pallets/quart#371

This is not a duplicate as this is a separate project.

Anything that doesn't pin to flask 3.0.* will be broken by this change.

The fix is simple, as far as I am aware

Quart 0.19.9 is now available on PyPI.