Commit a301d629 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

raise runtimeerror exception instead

parent d8791209
Pipeline #17085 passed with stage
in 26 minutes and 27 seconds
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment