From 6bccdd96d02c3483ef9844fbfdd4a98b49b093b3 Mon Sep 17 00:00:00 2001 From: Matthew Iannucci Date: Tue, 22 Oct 2024 21:02:08 -0400 Subject: [PATCH] Fix start and end constraints for asycn reference cat_file --- fsspec/implementations/reference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsspec/implementations/reference.py b/fsspec/implementations/reference.py index f9ce00597..580db965d 100644 --- a/fsspec/implementations/reference.py +++ b/fsspec/implementations/reference.py @@ -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