Commit 2876c10c authored by Martin Larralde's avatar Martin Larralde
Browse files

Fix `gecco run` crashing if unable to find genes in the input genome

parent 964a91b5
......@@ -115,7 +115,12 @@ class Run(Command): # noqa: D101
genes = list(
itertools.chain.from_iterable(map(orf_finder.find_genes, sequences))
)"Found {} potential genes", len(genes))
if genes:"Found {} potential genes", len(genes))
self.logger.warning("No genes were found")
return 0
# --- HMMER ----------------------------------------------------------"Running domain annotation")
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