Skip to content

Commit

Permalink
Clearer error message from odd FASTA-m10 files (Issue 3312)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Nov 10, 2011
1 parent b444c77 commit 1a99454
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Bio/AlignIO/FastaIO.py
Expand Up @@ -103,6 +103,9 @@ def FastaM10Iterator(handle, alphabet = single_letter_alphabet):
state_ALIGN_CONS = 5

def build_hsp():
if not query_tags and not match_tags:
raise ValueError("No data for query %r, match %r" \
% (query_id, match_id))
assert query_tags, query_tags
assert match_tags, match_tags
evalue = align_tags.get("fa_expect", None)
Expand Down

0 comments on commit 1a99454

Please sign in to comment.