Skip to content

Commit

Permalink
Fix Benchmarking 'NoneType' object is not subscriptable error (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
valenzuelaomar authored Aug 26, 2023
1 parent 56c3092 commit 50827d1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def load_contig_lengths(contig_fasta):
lines = cleanup.enter_context(open(contig_fasta))
cur = None
for line in lines:
if "ASSEMBLY FAILED" in line:
return {}

if line.startswith(">"):
if cur is not None:
lengths[cur[0]] = cur[1]
Expand Down

0 comments on commit 50827d1

Please sign in to comment.