biopython/biopython — pull request #147 by kblin (2013-01-12 09:55:20+00:00)
Title: GenBank.Scanner: Raise ValueErrors instead of AssertionErrors when parsi...

...ng fails

Other parts of the parser code all raise ValueError()s when they
encounter unexpected input, just the checks for record.id, record.name
and record.description raise AssertionErrors. Fix this and provide more
meaningful error messages.

For record.name, this code path can be triggered by a GenBank file with
the locus line of "LOCUS \n".

Signed-off-by: Kai Blin