File size: 231 Bytes
60f5111
 
 
 
 
 
 
1
2
3
4
5
6
7
8
try:
    async with asyncio.TaskGroup() as g:
        g.create_task(task1); g.create_task(task2)
except* KeyError:
    ...
    # handling KeyError here is meaningless, there's
    # no context to do anything with it but to log it.