Skip to content

Commit

Permalink
Fix start and end constraints for asycn reference cat_file
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed Oct 23, 2024
1 parent bd2224f commit 6bccdd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsspec/implementations/reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ async def _cat_file(self, path, start=None, end=None, **kwargs):
return part_or_url[start:end]
protocol, _ = split_protocol(part_or_url)
try:
return await self.fss[protocol]._cat_file(part_or_url, start=start, end=end)
return await self.fss[protocol]._cat_file(part_or_url, start=start0, end=end0)
except Exception as e:
raise ReferenceNotReachable(path, part_or_url) from e

Expand Down

0 comments on commit 6bccdd9

Please sign in to comment.