Correctly use CalledProcessError (fixes TypeError)