Commit 9af53b7b by Eric Coissac

Delay the logging of the broken pipe error

parent 549cc5c6
......@@ -526,6 +526,8 @@ def run(config):
logger.info(" ".join(command))
PIPEERROR=False
try:
if fconvert or rconvert:
......@@ -549,11 +551,14 @@ def run(config):
os.system(" ".join(command))
except BrokenPipeError:
logger.warning("Maximum count of read indexed.")
logger.warning("Indexing stopped but the index is usable.")
PIPEERROR=True
r=Index(output)
if PIPEERROR:
logger.warning("Maximum count of read indexed.")
logger.warning("Indexing stopped but the index is usable.")
logger.info('Count of indexed reads: %d' % len(r))
......
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