Changeset 1544:1bfc93a9bc5d in orange-bioinformatics


Ignore:
Timestamp:
02/03/12 12:20:51 (2 years ago)
Author:
ales_erjavec
Branch:
default
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • obiKEGG2/api.py

    r1539 r1544  
    6363                          
    6464        """ 
    65         return BInfo.from_text(str(self.service.binfo(db))) 
     65        result = self.service.binfo(db) 
     66        if result is not None: 
     67            return BInfo.from_text(str(result)) 
     68        else: 
     69            return result 
    6670     
    6771    def bfind(self, db, keywords): 
Note: See TracChangeset for help on using the changeset viewer.