Skip to content
Browse files

SeqIO: Give better error message on invalid sequence length string

Signed-off-by: Kai Blin <kai.blin@biotech.uni-tuebingen.de>
  • Loading branch information...
1 parent 6890296 commit a2cd2ed299d4eee44491f5438c315f83f411202d @kblin kblin committed with peterjc Mar 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Bio/GenBank/Scanner.py
View
2 Bio/GenBank/Scanner.py
@@ -669,7 +669,7 @@ def _feed_first_line_new(self, consumer, line):
def _feed_seq_length(self, consumer, text):
length_parts = text.split()
- assert len(length_parts) == 2
+ assert len(length_parts) == 2, "Invalid sequence length string %r" % text
assert length_parts[1].upper() in ["BP", "BP.", "AA."]
consumer.size(length_parts[0])

0 comments on commit a2cd2ed

Please sign in to comment.
Something went wrong with that request. Please try again.