[GRASS-git] [OSGeo/grass-addons] fcbb27: r.bioclim: End with success when precipitation is ...
Vaclav Petras
noreply at github.com
Thu Apr 13 06:23:35 PDT 2023
Branch: refs/heads/grass8
Home: https://github.com/OSGeo/grass-addons
Commit: fcbb27b383d61aab40977060f1d2a6ca72184a94
https://github.com/OSGeo/grass-addons/commit/fcbb27b383d61aab40977060f1d2a6ca72184a94
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2023-04-13 (Thu, 13 Apr 2023)
Changed paths:
M src/raster/r.bioclim/r.bioclim.py
Log Message:
-----------
r.bioclim: End with success when precipitation is missing (#886)
The precipitation parameter is optional, so the process return code should be 0, not 1, as no error occurred.
A return statement is more appropriate here than a direct exit call because this is a main function. Using return is consistent with the other branch which ends with the end of the function (an implicit return).
Remove sys import which would be unused.
More information about the grass-commit
mailing list