Skip to content

Commit 1bec392

Browse files
authored
Fix PackageNotFoundError import path
1 parent 071ee1a commit 1bec392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/makelock.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ for package in lock["packages"].values():
8888
8989
try:
9090
package["imports"] = sorted(get_imports_for_package(package["name"]))
91-
except PackageNotFoundError as err:
91+
except importlib.metadata.PackageNotFoundError:
9292
print(f"Package {package['name']} has not been installed")
9393
9494
with open("/pyodide-lock.json", "w") as f:

0 commit comments

Comments
 (0)