Skip to content

Commit

Permalink
emfs:
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Oct 24, 2024
1 parent 9d50496 commit 223649b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions micropip/wheelinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 223649b

Please sign in to comment.