Generally using except: is a mistake since it catches everything
including SystemExit / KeyboardInterrupt / etc.... When we really
do want such a catch we should explicitly use except BaseException:,
otherwise we normally want except Exception: or even better, name
the specific exception that might occur.
Details
Details
- Reviewers
deadalnix - Group Reviewers
Restricted Project - Commits
- rSTAGING949b64f4c5e4: [python linting] enforce E722: do not use bare except
rABC949b64f4c5e4: [python linting] enforce E722: do not use bare except
arc lint --everything ninja check-all
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- lint722
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 9338 Build 16612: Default Diff Build & Tests Build 16611: arc lint + arc unit
Event Timeline
.arclint | ||
---|---|---|
29 | The remaining four are: E501 Line too long (82 > 79 characters) E704 Multiple statements on one line (def) W503 Line break occurred before a binary operator W504 Line break occurred after a binary operator They have a bunch of violations and in fact the latter three are not even enabled by default in flake8. This is about as far as we can get with the low hanging fruit. |