We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f3150b commit 9cb6adaCopy full SHA for 9cb6ada
python/src/lib.rs
@@ -278,6 +278,13 @@ impl OntoEnv {
278
Some(found_root) => OntoEnvRs::load_from_directory(found_root, read_only)
279
.map_err(anyhow_to_pyerr)?,
280
None => {
281
+ // If a specific path was provided but no .ontoenv exists, raise error
282
+ if path.is_some() {
283
+ return Err(PyValueError::new_err(format!(
284
+ "OntoEnv directory not found at: \"{}\"",
285
+ root_path.join(".ontoenv").display()
286
+ )));
287
+ }
288
if read_only {
289
return Err(PyErr::new::<pyo3::exceptions::PyValueError, _>(format!(
290
"OntoEnv directory not found at: \"{}\" and read_only=True",
0 commit comments