Run command and don't raise exception on nonzero exit code (ignore_errors())

outputtext:

#!/bin/bash
echo hello > output
exit 1
from commandlib import Command
Command("./outputtext").ignore_errors().run()

File ‘output’ will contain:

hello