Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Aug 23, 2024
1 parent 6d73dd2 commit a502d5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions micropip/_compat/_compat_in_pyodide.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ async def fetch_string_and_headers(
response.raise_for_status()
except HttpStatusError as e:
raise CompatibilityInPyodide.HttpStatusError(e.status, str(e)) from e
except OSError as e:
raise OSError(
f"Older version of pyodide ? {pyodide.__version__}. Cors missing ?"
) from e

content = await response.string()
headers: dict[str, str] = response.headers
Expand Down

0 comments on commit a502d5e

Please sign in to comment.