Commits

Aleš Erjavec  committed 1bfc93a

Fixed binfo api method (return None not 'None')

  • Participants
  • Parent commits 6481dba

Comments (0)

Files changed (1)

File obiKEGG2/api.py

                          <dbget> <fasta> <blast>
                          
         """
-        return BInfo.from_text(str(self.service.binfo(db)))
+        result = self.service.binfo(db)
+        if result is not None:
+            return BInfo.from_text(str(result))
+        else:
+            return result
     
     def bfind(self, db, keywords):
         """ Search database 'db' for keywords