check_returncode#

maize.utilities.execution.check_returncode(result: CompletedProcess[bytes], raise_on_failure: bool = True) None[source]#

Check the returncode of the process and raise or log a warning.

Parameters:
  • result – Completed process to check

  • raise_on_failure – Whether to raise an exception on failure