Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Jan 22, 2025
1 parent 2085ab6 commit 3d7cb4a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/chia-datalayer/src/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1536,9 +1536,7 @@ impl MerkleBlob {

#[pyo3(name = "get_key_index")]
pub fn py_get_key_index(&self, key: KvId) -> PyResult<TreeIndex> {
// TODO: update to use From<Error>
self.get_key_index(key)
.map_err(|e| PyValueError::new_err(e.to_string()))
Ok(self.get_key_index(key)?)
}
}

Expand Down

0 comments on commit 3d7cb4a

Please sign in to comment.