Skip to content

Commit

Permalink
Fix for empty integer values from Entrez.esummary, reported by Austin…
Browse files Browse the repository at this point in the history
… Davis-Richardson
  • Loading branch information
chapmanb committed Oct 7, 2009
1 parent 447a2c5 commit 4dca8a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Bio/Entrez/Parser.py
Expand Up @@ -188,7 +188,10 @@ def endElement(self, name):
if self.object.itemtype in ("List", "Structure"):
return
elif self.object.itemtype=="Integer":
value = IntegerElement(value)
if value:
value = IntegerElement(value)
else:
value = -1
else:
# Convert Unicode strings to plain strings if possible
try:
Expand Down

0 comments on commit 4dca8a2

Please sign in to comment.