Skip to content

Commit d41fed8

Browse files
authored
fix: jsexception (#13)
* fix: jsexception * remove: ffi * remove: if * fix jsexception
1 parent 79ab9c5 commit d41fed8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
2626
- run: poetry install --no-interaction
2727
- name: Install dependencies
28-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
2928
run: poetry install -E regular --no-interaction --no-root
3029
- name: check style
3130
run: poetry run black . --check

skillsnetwork/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async def _get_chunks(url: str, chunk_size: int) -> Generator[bytes, None, None]
6969
desc = f"Downloading {Path(urlparse(url).path).name}"
7070
if _is_jupyterlite():
7171
from js import fetch # pyright: ignore
72-
from pyodide import JsException # pyright: ignore
72+
from pyodide.ffi import JsException # pyright: ignore
7373

7474
try:
7575
response = await fetch(url)

0 commit comments

Comments
 (0)