-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
STYLE: Fixing #18419 - Fixing flake8 issues to allow for >3.4.1 support #22625
Conversation
Hello @AaronCritchley! Thanks for submitting the PR.
|
we don’t want to simply mark Exception otherwise these will be overly broad it is tedious but the way to do this is to comment the try/except and add back until the tests pass most of these should be Type orr Value Errors or both prob best to break this PR up a bit after everything is done then can be more strict in the linter |
Sure, no worries, will close and try to find time to do this in smaller chunks with proper exception catches |
git diff upstream/master -u -- "*.py" | flake8 --diff
There were tons of E722's, in a lot of cases I did not know what exceptions the author was expecting, so have unfortunately had to mark as
except Exception
, but where possible, have been more specific. If the reviewer/s know the expected exceptions then happy to adjust.Tested on flake8 3.5, log below: