Commits

Aleš Erjavec committed 729925f

KEGG bug fixes.

Comments (0)

Files changed (2)

_bioinformatics/obiKEGG/databases.py

 
         """
         entries = []
-        batch_size = 100
+        batch_size = 10
         keys = list(keys)
         start = 0
         while start < len(keys):

_bioinformatics/obiKEGG/entry/parser.py

         """
         Split the section title from the rest of the line
         """
-        title, rest = line.split(" ", 1)
+        try:
+            title, rest = line.split(" ", 1)
+        except ValueError:
+            # no contents, only section title
+            title = line.rstrip()
+            rest = ""
         rest = rest.lstrip(" ")
         return title, rest