loguru/tests/exceptions/output/modern/exception_group_catch.txt

31 lines
1.5 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

+ Exception Group Traceback (most recent call last):
|
| File "tests/exceptions/source/modern/exception_group_catch.py", line 14, in a
| raise ExceptionGroup("group", [ValueError(1)])
|
| ExceptionGroup: group (1 sub-exception)
+-+---------------- 1 ----------------
| ValueError: 1
+------------------------------------
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tests/exceptions/source/modern/exception_group_catch.py", line 25, in <module>
b()
└ <function b at 0xDEADBEEF>
File "tests/exceptions/source/modern/exception_group_catch.py", line 21, in b
except* TypeError: a()
 └ <function a at 0xDEADBEEF>
File "tests/exceptions/source/modern/exception_group_catch.py", line 15, in a
except* x as e: raise ValueError(2)
 └ <class 'ValueError'>
ValueError: 2