diff --git a/src/pyodide.js b/src/pyodide.js index 2bf3d10ca..8d6997f60 100644 --- a/src/pyodide.js +++ b/src/pyodide.js @@ -29,16 +29,17 @@ var languagePluginLoader = new Promise((resolve, reject) => { let toLoad = new Set(); while (queue.length) { const package = queue.pop(); - if (!packages.hasOwnProperty(package)) { - throw `Unknown package '${package}'`; - } if (!loadedPackages.has(package)) { toLoad.add(package); - packages[package].forEach((subpackage) => { - if (!loadedPackages.has(subpackage) && !toLoad.has(subpackage)) { - queue.push(subpackage); - } - }); + if (packages.hasOwnProperty(package)) { + packages[package].forEach((subpackage) => { + if (!loadedPackages.has(subpackage) && !toLoad.has(subpackage)) { + queue.push(subpackage); + } + }); + } else { + console.log(`Unknown package '${package}'`); + } } }