Skip to content

Commit

Permalink
Fixed error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ariostas committed Nov 12, 2024
1 parent 74a0558 commit 515b7ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uproot/source/fsspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def chunk(self, start: int, stop: int) -> uproot.source.chunk.Chunk:
:doc:`uproot.source.chunk.Chunk`.
"""
if self.closed:
raise OSError(f"memmap is closed for file {self._file_path}")
raise OSError(f"file {self._file_path!r} is closed")

self._num_requests += 1
self._num_requested_chunks += 1
Expand Down Expand Up @@ -133,7 +133,7 @@ def chunks(
chunks to be filled.
"""
if self.closed:
raise OSError(f"memmap is closed for file {self._file_path}")
raise OSError(f"file {self._file_path!r} is closed")

self._num_requests += 1
self._num_requested_chunks += len(ranges)
Expand Down

0 comments on commit 515b7ee

Please sign in to comment.