Better detection of missing taxonomy

This commit is contained in:
Celine Mercier
2019-08-29 16:10:09 +02:00
parent dcf8cf1d64
commit 187053026f
4 changed files with 4 additions and 4 deletions

2
python/obitools3/commands/grep.pyx Executable file → Normal file
View 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 :