Commit 32f4b2a6 authored by Christophe Benz's avatar Christophe Benz
Browse files

Fix return value

parent 07e3f8d6
......@@ -258,7 +258,7 @@ def validate_dataset(dataset_dir):
**error_from_storage_error(exc),
"location": "{}/dataset.json".format(dataset_code),
})
return
return (None, None, errors)
# Dataset directory name MUST be the dataset code.
error_code = "invalid-dataset-directory-name"
......@@ -306,7 +306,7 @@ def validate_provider(storage):
**error_from_storage_error(exc),
"location": "provider.json",
})
return
return (None, errors)
provider_code = provider_json.get('code')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment