Commit ac9e6893 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files pre-process, do not fail when file2 is not defined

There may be pre-processes running on only one file.
parent c7131b65
......@@ -651,6 +651,7 @@ def run_pre_process(pre_process_id, sequence_file_id, clean_before=True, clean_a
print pre_process
cmd = pre_process.command.replace( "&file1&", defs.DIR_SEQUENCES + sequence_file.data_file)
if sequence_file.data_file2:
cmd = cmd.replace( "&file2&", defs.DIR_SEQUENCES + sequence_file.data_file2)
cmd = cmd.replace( "&result&", output_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