Skip to content

Commit 223649b

Browse files
committed
emfs:
1 parent 9d50496 commit 223649b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

micropip/wheelinfo.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,11 @@ def requires(self, extras: set[str]) -> list[Requirement]:
152152
return requires
153153

154154
async def _fetch_bytes(self, fetch_kwargs: dict[str, Any]):
155-
if self.parsed_url.scheme not in ("https", "http"):
155+
if self.parsed_url.scheme not in ("https", "http", "emfs"):
156156
# Don't raise ValueError it gets swallowed
157-
raise TypeError(f"Cannot download from a non-remote location: {self.url!r}")
157+
raise TypeError(
158+
f"Cannot download from a non-remote location: {self.url!r} ({self.parsed_url!r})"
159+
)
158160
try:
159161
logger.debug("Fetching URL %r", self.url)
160162
bytes = await fetch_bytes(self.url, fetch_kwargs)

0 commit comments

Comments
 (0)