Source

orange-bioinformatics / _bioinformatics / obiKEGG / __init__.py

Diff from to

File _bioinformatics/obiKEGG/__init__.py

     deprecated_keywords, deprecated_attribute, deprecated_function_name
 )
 
-from .. import obiProb
+from .. import obiProb, obiTaxonomy
 
 from . import databases
 from . import entry
 DEFAULT_CACHE_DIR = conf.params["cache.path"]
 
 
-class OrganismNotFoundError(Exception):
-    pass
-
-
 class Organism(object):
     """
     A convenience class for retrieving information regarding an
             if ids:
                 name = ids.pop(0) if ids else name
             else:
-                raise OrganismNotFoundError(name)
+                raise obiTaxonomy.UnknownSpeciesIdentifier(name)
 
         try:
             return genome[name].organism_code
         except KeyError:
-            raise OrganismNotFoundError(name)
+            raise obiTaxonomy.UnknownSpeciesIdentifier(name)
 
 
 def pathways(org):