Skip to content

Commit af8b7df

Browse files
fix: return PyValueError for Term::Triple in term_to_python
Co-authored-by: aider (openai/gpt-5) <[email protected]>
1 parent 18bb720 commit af8b7df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ fn term_to_python<'a>(
108108
Term::BlankNode(id) => rdflib
109109
.getattr("BNode")?
110110
.call1((id.clone().into_string(),))?,
111+
Term::Triple(_) => {
112+
return Err(PyErr::new::<pyo3::exceptions::PyValueError, _>(
113+
"Triples are not supported",
114+
))
115+
}
111116
};
112117
Ok(res)
113118
}

0 commit comments

Comments
 (0)