fix CalledProcessError exception