Skip to content

Commit

Permalink
cleaned up error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Aug 15, 2024
1 parent 3d3be9c commit d61efb0
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 @@ -16,8 +16,9 @@ class FsObject(FileSet, os.PathLike):
@property
def fspath(self):
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 d61efb0

Please sign in to comment.