I get the sense I should file a bug about subscripting Exception subclasses.
Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG6ff196d2553b: match: suppress error about subscripting an exception
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
Regarding filing a bug, ISTR exception subscription is deprecated (or at least discouraged) in modern Python versions: I believe you are encouraged to access e.g. e.message now. But I'm fine suppressing these for now until Python formally deprecates it by emitting a DeprecationWarning.