Commit 8235a817 authored by Romain Casati's avatar Romain Casati
Browse files

Clean traceback.

parent 6b76f219
import js
import sys
import traceback
from . import _pyodide_console, kernel, _pyodide_base, packages
__author__ = "Romain Casati"
......@@ -61,6 +63,14 @@ class InteractiveConsole(_pyodide_console.InteractiveConsole):
def showtraceback(self):
""" Remove one more traceback level. """
ei = sys.exc_info()
sys_exc_info = sys.exc_info
sys.exc_info = lambda: (ei[0], ei[1], ei[2].tb_next)
sys.exc_info = sys_exc_info
def find_imports_with_errors(self, source):
""" TODO. """
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment