Skip to content

Commit 2ad392e

Browse files
author
Tom Augspurger
committed
fixup
1 parent f29b789 commit 2ad392e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fsspec/implementations/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async def _ls(self, url, detail=True, **kwargs):
192192

193193
def _raise_not_found_for_status(self, response, url):
194194
"""
195-
Raises FileNotFoundError if the status code is a 404, otherwise uses raise_for_status.
195+
Raises FileNotFoundError for 404s, otherwise uses raise_for_status.
196196
"""
197197
if response.status == 404:
198198
raise FileNotFoundError(url)
@@ -243,7 +243,7 @@ async def _get_file(self, rpath, lpath, chunk_size=5 * 2 ** 20, **kwargs):
243243
logger.debug(rpath)
244244
session = await self.set_session()
245245
async with session.get(rpath, **self.kwargs) as r:
246-
self._raise_not_found_for_status(r, url)
246+
self._raise_not_found_for_status(r, rpath)
247247
with open(lpath, "wb") as fd:
248248
chunk = True
249249
while chunk:

0 commit comments

Comments
 (0)