Skip to content
Snippets Groups Projects
Commit b5f5b9de authored by Studer Gabriel's avatar Studer Gabriel
Browse files

correctly log accpro errors

parent e5935dcd
No related branches found
No related tags found
No related merge requests found
......@@ -140,19 +140,19 @@ def _run_accpro(fasta_file, msa, workdir, seqlen):
if "Segmentation fault" in sout:
LogError(
'Running ACCPro failed for command "%s" with a segmentation fault'
% command
% " ".join(cmd)
)
return None
if "Segmentation fault" in serr:
LogError(
'Running ACCPro failed for command "%s" with a segmentation fault'
% command
% " ".join(cmd)
)
return None
if job.returncode != 0:
LogError(
'Running ACCPro failed for command "%s":\n%s\n%s'
% (" ".join(command), sout, serr)
% (" ".join(cmd), sout, serr)
)
return None
......
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