Permalink
Browse files

Another generic warning changed to a BiopythonWarning

  • Loading branch information...
peterjc committed Jan 8, 2013
1 parent 3870c09 commit f7afc122c6f2037d73daaca31d4bb6f4b38eecce
Showing with 3 additions and 1 deletion.
  1. +3 −1 Bio/SeqIO/InsdcIO.py
View
@@ -397,7 +397,9 @@ def _write_single_line(self, tag, text):
assert len(tag) < self.HEADER_WIDTH
if len(text) > self.MAX_WIDTH - self.HEADER_WIDTH:
import warnings
- warnings.warn("Annotation %r too long for %s line" % (text, tag))
+ from Bio import BiopythonWarning
+ warnings.warn("Annotation %r too long for %s line" % (text, tag),
+ BiopythonWarning)
self.handle.write("%s%s\n" % (tag.ljust(self.HEADER_WIDTH),
text.replace("\n", " ")))

0 comments on commit f7afc12

Please sign in to comment.