[GRASS-git] [OSGeo/grass] d7b964: pythonlib: Reduce usage of bare except in script (...
Vaclav Petras
noreply at github.com
Mon May 10 17:41:02 PDT 2021
Branch: refs/heads/master
Home: https://github.com/OSGeo/grass
Commit: d7b96427687bf24aebddd5bb127caf9818ab6195
https://github.com/OSGeo/grass/commit/d7b96427687bf24aebddd5bb127caf9818ab6195
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2021-05-10 (Mon, 10 May 2021)
Changed paths:
M python/grass/script/core.py
M python/grass/script/utils.py
Log Message:
-----------
pythonlib: Reduce usage of bare except in script (#1543)
* Finer error reporting in the parser() function.
* Only ValueError errors in the key-value parsing function.
* Only specific errors in the del_temp_region() function.
* Generic Exception used instead of bare except (satisfies Flake8, but not Pylint).
More information about the grass-commit
mailing list