Skip to content
Snippets Groups Projects
Commit 7ae5aa6f authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

data-envs: raise early if the data env we're querying does not exist

parent a93f658c
No related branches found
No related tags found
1 merge request!37general improvements
......@@ -9,6 +9,10 @@
def get_data_env(data_env_path):
data_env_desc = basics.data_env_file(data_env_path)
data = basics.get_data(data_env_desc)
if data is None:
raise FileNotFoundError(
f"data environment {data_env_path} does not exist"
)
return DataEnvironment(data_env_path, data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment