MCPcopy Index your code
hub / github.com/RustPython/RustPython / handlePythonError

Function handlePythonError

wasm/notebook/src/process.js:36–41  ·  view source on GitHub ↗
(errorElem, err)

Source from the content-addressed store, hash-verified

34}
35
36function handlePythonError(errorElem, err) {
37 if (err instanceof WebAssembly.RuntimeError) {
38 err = window.__RUSTPYTHON_ERROR || err;
39 }
40 errorElem.textContent = err;
41}
42
43function addCSS(code) {
44 let style = document.createElement('style');

Callers 2

executeNotebookFunction · 0.90
runPythonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected