Fix the subprocess.CalledProcessError exceptions