forked from goodboy/tractor
1
0
Fork 0
tractor/examples/debugging/subactor_error.py

17 lines
292 B
Python

import tractor
async def name_error():
getattr(doggypants)
async def main():
async with tractor.open_nursery() as n:
portal = await n.run_in_actor('name_error', name_error)
await portal.result()
if __name__ == '__main__':
tractor.run(main, debug_mode=True)