mirror of https://github.com/pyodide/pyodide.git
Fix bug in console.html when runPython returns None [skip ci] (#1741)
This commit is contained in:
parent
5451ae8096
commit
684269285b
|
@ -81,11 +81,15 @@
|
|||
})
|
||||
);
|
||||
}
|
||||
if (value.destroy) {
|
||||
if (value && value.destroy) {
|
||||
value.destroy();
|
||||
}
|
||||
} catch (e) {
|
||||
if (e.constructor.name === "PythonError") {
|
||||
term.error(fut.formatted_error.trimEnd());
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
fut.destroy();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue