From 223649bc683f246139a44c8d71585a394fa246ad Mon Sep 17 00:00:00 2001 From: M Bussonnier Date: Thu, 24 Oct 2024 15:26:42 +0200 Subject: [PATCH] emfs: --- micropip/wheelinfo.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/micropip/wheelinfo.py b/micropip/wheelinfo.py index d94dd97..94fafdd 100644 --- a/micropip/wheelinfo.py +++ b/micropip/wheelinfo.py @@ -152,9 +152,11 @@ def requires(self, extras: set[str]) -> list[Requirement]: return requires async def _fetch_bytes(self, fetch_kwargs: dict[str, Any]): - if self.parsed_url.scheme not in ("https", "http"): + if self.parsed_url.scheme not in ("https", "http", "emfs"): # Don't raise ValueError it gets swallowed - raise TypeError(f"Cannot download from a non-remote location: {self.url!r}") + raise TypeError( + f"Cannot download from a non-remote location: {self.url!r} ({self.parsed_url!r})" + ) try: logger.debug("Fetching URL %r", self.url) bytes = await fetch_bytes(self.url, fetch_kwargs)