Closed echoix closed 2 days ago
Concerns Pylint rule "pointless-exception-statement / W0133"
Using ruff check --output-format=concise --select PLW0133 --unsafe-fixes --fix.
ruff check --output-format=concise --select PLW0133 --unsafe-fixes --fix
Part of the effort to introduce Pylint 3.x for https://github.com/OSGeo/grass/issues/3921
Uses the fixes provided for ruff rule useless-exception-statement (PLW0133) to fix Pylint's "pointless-exception-statement / W0133".
This one is extremely easy to review. The three exceptions were simply not raised, which doesn't make sense, nor do what was intended.
Concerns Pylint rule "pointless-exception-statement / W0133"
Using
ruff check --output-format=concise --select PLW0133 --unsafe-fixes --fix
.Part of the effort to introduce Pylint 3.x for https://github.com/OSGeo/grass/issues/3921
Uses the fixes provided for ruff rule useless-exception-statement (PLW0133) to fix Pylint's "pointless-exception-statement / W0133".
This one is extremely easy to review. The three exceptions were simply not raised, which doesn't make sense, nor do what was intended.