OSGeo / grass

GRASS GIS - free and open-source geospatial processing engine
https://grass.osgeo.org
Other
791 stars 288 forks source link

style: Fixes useless-exception-statement (PLW0133) #3957

Closed echoix closed 2 days ago

echoix commented 2 days ago

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.