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

Function _main_wrapper

crates/wasm/Lib/asyncweb.py:60–68  ·  view source on GitHub ↗
(coro)

Source from the content-addressed store, hash-verified

58
59
60async def _main_wrapper(coro):
61 try:
62 await coro
63 except: # noqa: E722
64 import traceback
65 import sys
66
67 # TODO: sys.stderr on wasm
68 traceback.print_exc(file=sys.stdout)
69
70
71def _resolve(prom):

Callers 1

mainFunction · 0.85

Calls 1

print_excMethod · 0.80

Tested by

no test coverage detected