trio icon indicating copy to clipboard operation
trio copied to clipboard

Error in trio's sys.excepthook when maximum recursion depth exceeded

Open catern opened this issue 5 years ago • 0 comments

The following code triggers an error in the trio-injected sys.excepthook:

import trio

def f():
    try:
        f()
    except:
        raise Exception("foo")

f()

That is, if we "import trio" before running f(), we'll see an Error in sys.excepthook: before the main exception; if we don't import trio before running f(), the exception is printed just fine as normal, with no error in sys.excepthook.

catern avatar Dec 12 '20 20:12 catern