diff --git a/bob/pad/base/tools/algorithm.py b/bob/pad/base/tools/algorithm.py index 85c7c724717342752a6e6fbf976cdfb461b51ec6..960c479fff3b3774fbbf12629650dce3992b48a8 100644 --- a/bob/pad/base/tools/algorithm.py +++ b/bob/pad/base/tools/algorithm.py @@ -114,22 +114,13 @@ def project(algorithm, extractor, groups=None, indices=None, allow_missing_files for i in index_range: feature_file = str(feature_files[i]) projected_file = str(projected_files[i]) - if not os.path.exists(feature_file): - if allow_missing_files: - logger.debug( - "... Cannot find extracted feature file %s; skipping", - feature_file) - continue - else: - logger.error("Cannot find extracted feature file %s", - feature_file) if not os.path.exists(feature_file): if allow_missing_files: logger.debug("... Cannot find extracted feature file %s; skipping", feature_file) continue else: - logger.error("Cannot find extracted feature file %s", feature_file) + raise RuntimeError("Cannot find extracted feature file %s" % feature_file) if not utils.check_file(projected_file, force, 1000): logger.debug("... Projecting features for file '%s'", feature_file)