File size: 156 Bytes
60f5111
 
 
 
1
2
3
4
5
try:
    raise ExceptionGroup("one", [ValueError('a'), TypeError('b')])
except* ValueError:
    raise ExceptionGroup("two", [KeyError('x'), KeyError('y')])