Skip to content
Snippets Groups Projects
Commit a301d629 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

raise runtimeerror exception instead

parent d8791209
No related branches found
No related tags found
1 merge request!31Improvements
Pipeline #
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment