Skip to content

Commit

Permalink
Merge pull request #68 from ArcanaFramework/fs-object-bug-fix
Browse files Browse the repository at this point in the history
Fixed FsObject error message to avoid recursion
  • Loading branch information
tclose authored Sep 4, 2024
2 parents e81dae1 + 81a652e commit 04fa1a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fileformats/generic/fsobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ class FsObject(FileSet, os.PathLike): # type: ignore
@property
def fspath(self) -> Path:
if len(self.fspaths) > 1:
fspaths = [str(f) for f in self.fspaths]
raise FormatMismatchError(
f"More than one fspath ({self.fspaths}) provided to FsObject, "
f"More than one fspath ({fspaths}) provided to FsObject, "
f"primary path is ambiguous"
)
return next(iter(self.fspaths))
Expand Down

0 comments on commit 04fa1a4

Please sign in to comment.