Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried out the generic HTTPException handler described in: https://flask.palletsprojects.com/en/1.1.x/errorhandling/#generic-exception-handlers
this handler calls get_response() without parameter on the error, but it breaks on a RequestRedirect as the environ parameter is required.
Is there a reason why RequestRedirect does not conform to the HTTPException signature for get_response ?
I think
def get_response(self, environ): return redirect(self.new_url, self.code)
should be replaced by
def get_response(self, environ=None): return redirect(self.new_url, self.code)
The text was updated successfully, but these errors were encountered:
This makes sense to me, see #1719.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I tried out the generic HTTPException handler described in:
https://flask.palletsprojects.com/en/1.1.x/errorhandling/#generic-exception-handlers
this handler calls get_response() without parameter on the error, but it breaks on a RequestRedirect as the environ parameter is required.
Is there a reason why RequestRedirect does not conform to the HTTPException signature for get_response ?
I think
should be replaced by
The text was updated successfully, but these errors were encountered: