diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 83297de2..a7a84532 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -36,6 +36,7 @@ Bug Fixes :: * Fix failing pypy python setup in github actions + * Fix compatibility with upcoming release of Flask 2.3+. (#485) [jdieter] .. _section-1.0.2: 1.0.2 diff --git a/flask_restx/api.py b/flask_restx/api.py index 31539584..922c6e2c 100644 --- a/flask_restx/api.py +++ b/flask_restx/api.py @@ -685,7 +685,7 @@ def handle_error(self, e): # client if a handler is configured for the exception. if ( not isinstance(e, HTTPException) - and current_app.propagate_exceptions + and current_app.config.get("PROPAGATE_EXCEPTIONS", False) and not isinstance(e, tuple(self._own_and_child_error_handlers.keys())) ):