obi grep: fixed bug when reading URIs

This commit is contained in:
Celine Mercier
2018-03-21 16:34:57 +01:00
parent 53cb3354b8
commit 75b54c83ca

View File

@ -46,7 +46,7 @@ def run(config):
uri = config['obi']['outputURI'].split('/')
if len(uri)==2:
# Check that input and output DMS are the same (predicate, to discuss)
if config['obi']['inputURI'].split(b'/')[0] != uri[0]:
if config['obi']['inputURI'].split('/')[0] != uri[0]:
raise Exception("Input and output DMS must be the same")
output_view_name = uri[1]
else: