Skip to content

Commit 04fa1a4

Browse files
authored
Merge pull request #68 from ArcanaFramework/fs-object-bug-fix
Fixed FsObject error message to avoid recursion
2 parents e81dae1 + 81a652e commit 04fa1a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fileformats/generic/fsobject.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ class FsObject(FileSet, os.PathLike): # type: ignore
1414
@property
1515
def fspath(self) -> Path:
1616
if len(self.fspaths) > 1:
17+
fspaths = [str(f) for f in self.fspaths]
1718
raise FormatMismatchError(
18-
f"More than one fspath ({self.fspaths}) provided to FsObject, "
19+
f"More than one fspath ({fspaths}) provided to FsObject, "
1920
f"primary path is ambiguous"
2021
)
2122
return next(iter(self.fspaths))

0 commit comments

Comments
 (0)