mpas_tools.logging.check_call¶
- mpas_tools.logging.check_call(args, logger, **kwargs)[source]¶
Call the given subprocess with logging to the given logger.
- Parameters
args (list) – A list of argument to the subprocess
logger (logging.Logger) – The logger to write output to
kwargs (dict) – Keyword arguments to pass to subprocess.Popen
- Raises
subprocess.CalledProcessError – If the given subprocess exists with nonzero status