Open
Description
I'm not sure this is a common mistake, but now that strict exception groups are a thing try
/except
around either trio.open_nursery
or is never going to happen. (except maybe cancellation? I haven't thought through that part)trio.run
Stuff like:
async def main():
try:
async with trio.open_nursery() as nursery:
...
except KeyboardInterrupt:
print("...")
raise
(maybe worth prototyping and seeing if it catches anything?)