New issue
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
bpo-43859: Improve the error message for IndentationError exceptions #25431
Conversation
Pinging @lysnikolaou and @gvanrossum. @ammaraskar and some users mentioned that the current |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the ping, @pablogsal.
I'm fine with having more rules, but producing better errors. Only one comment: Let's quote the type of the statement in the error message, for example expected an indented block after 'try' statement on line 2
@lysnikolaou @ammaraskar Thanks fo the feedback, I have updated the PR to address your comments |
…tionError exceptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
https://bugs.python.org/issue43859