Better detection of missing taxonomy
This commit is contained in:
2
python/obitools3/commands/grep.pyx
Executable file → Normal file
2
python/obitools3/commands/grep.pyx
Executable file → Normal file
@ -290,7 +290,7 @@ def run(config):
|
||||
|
||||
if 'taxoURI' in config['obi'] and config['obi']['taxoURI'] is not None:
|
||||
taxo_uri = open_uri(config["obi"]["taxoURI"])
|
||||
if taxo_uri is None:
|
||||
if taxo_uri is None or taxo_uri[2] == bytes:
|
||||
raise Exception("Couldn't open taxonomy")
|
||||
taxo = taxo_uri[1]
|
||||
else :
|
||||
|
Reference in New Issue
Block a user