Skip to content

Commit

Permalink
fix: convert local store root to string
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Dec 10, 2024
1 parent 0643735 commit 94806cf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ impl<'py> FromPyObject<'py> for StoreConfigType {
let name = name.to_str()?;
match name {
"LocalStore" => {
let root: String = store
.getattr("root")?
.call_method("as_posix", (), None)?
.extract()?;
let root: String = store.getattr("root")?.call_method0("__str__")?.extract()?;
Ok(StoreConfigType::Filesystem(FilesystemStoreConfig::new(
root,
)))
Expand Down

0 comments on commit 94806cf

Please sign in to comment.