Commit graph

5 commits

Author SHA1 Message Date
49cbbd198a Fix chaining non-built-in exceptions 2024-05-21 16:41:39 -04:00
cc16bd3d53
do not chain exceptions to themselves
cpython actually makes sure the newly chained exception doesn't create
a cycle (even indirectly); see _PyErr_SetObject use of "Floyd's cycle
detection algo". We'll go for the simpler solution of just checking
one level deep until it's clear we need to do more.

Closes: #7414
2023-01-04 08:40:20 -06:00
b83c42e41a
Implement the chain= argument of traceback.print_exception 2022-12-02 10:50:31 -06:00
dd443bacb8
Chain exceptions while unwinding 2022-11-13 19:53:23 -06:00
b6f86e1e73
Recursively print chained exceptions 2022-11-13 19:53:21 -06:00