def _get_exception_handler(self, app):
        handle_exception = app.handle_exception

        @wraps(handle_exception)
        def ret_val(exception):
            self._post_data(stack.top)

            return handle_exception(exception)

        return ret_val
Get a wrapped exception handler. Returns a handler that can be
dataset/ETHPy150Open jzempel/flask-exceptional/flask_exceptional.py/Exceptional._get_exception_handler