diff --git a/fsspec/implementations/http.py b/fsspec/implementations/http.py index aa36332b6..2ffb7ed41 100644 --- a/fsspec/implementations/http.py +++ b/fsspec/implementations/http.py @@ -433,7 +433,7 @@ async def _info(self, url, **kwargs): if policy == "get": # If get failed, then raise a FileNotFoundError raise FileNotFoundError(url) from exc - logger.debug(str(exc)) + logger.debug("", exc_info=exc) return {"name": url, "size": None, **info, "type": "file"}