Clarify no-else-raise
and no-else-return
also apply to try/except
#9901
Labels
Documentation 📗
Good first issue
Friendly and approachable by new contributors
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Bug description
Configuration
No response
Command used
Pylint output
Expected behavior
No error reports.
As far as I understand,
no-else-raise
/no-else-return
are supposed to be produced forif
-else
operators.But in this example
else
is part oftry
-except
-else
operators, and the errors are completely inappropriate.Pylint version
OS / Environment
Ubuntu 24.04.1
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: