[GRASS-git] [OSGeo/grass] cc6dbe: pythonlib: return None from run_command() (#165)

Vaclav Petras noreply at github.com
Tue Nov 26 12:31:45 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: cc6dbebfa00223e2c7ef6d92c9e814574761ace9
      https://github.com/OSGeo/grass/commit/cc6dbebfa00223e2c7ef6d92c9e814574761ace9
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2019-11-26 (Tue, 26 Nov 2019)

  Changed paths:
    M lib/python/script/core.py

  Log Message:
  -----------
  pythonlib: return None from run_command() (#165)

Removing the 7.0.0 backwards compatibility from run_command()
which was raising exception on error but returning 0 on success.

Adding option to use the standard fatal() error handling
which might be good for use within GRASS GIS code itself.

Adding extensive documentation for the available options
and linking all relevant functions.

Also passing module name explicitelly to CalledModuleError
as a parameter.




More information about the grass-commit mailing list