Skip to content

Commit

Permalink
Avoid crash when no subtypes determined for segment (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfornika authored Jul 12, 2024
1 parent 44834fc commit 3b892d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fluviewer/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.11-5'
__version__ = '0.1.11-6'
2 changes: 1 addition & 1 deletion fluviewer/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def filter_contig_blast_results(blast_results, outdir, out_name, identity, lengt
error_code = 8
exit(error_code)
else:
if segment_subtypes[0] == 'none':
if len(segment_subtypes) == 0:
log.info(f'No subtype determined for segment {segment}.')
else:
log.info(f'Subtype determined for segment {segment}: {segment_subtypes[0]}.')
Expand Down

0 comments on commit 3b892d4

Please sign in to comment.