mpas_tools.logging.check_call

mpas_tools.logging.check_call(args, logger)[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

Raises

subprocess.CalledProcessError – If the given subprocess exists with nonzero status