0

When running python using runPythonAsync, and there is an exception i get the stacktrace of asyncio call, instead of the original code stacktrace. How do I get access to the internal stacktrace instead of the asyncio Excpetion?

Python code:

print("hello")
s<dfsdfafa # this is the error

This is how I run the python code from pyodide:

this.pyodide.runPythonAsync(code).then( (result:any)=>{
  console.log("execCode: result:\n",result)
  this.sendState(CompilerState.Success, result)
}).catch( (error:any)=>{
  this.handleExecError(error)
}).finally(()=>{
  clearInterval(this.interruptTimer)
})

This is the resulting stacktrace:

enter image description here

Cesar
  • 4,418
  • 2
  • 31
  • 37

0 Answers0