Commit bbaff7c
fix(cuda.core): explicit exception chaining in GB_callback cleanup path
When _capture_tail_node fails, the anonymous-commit cleanup calls
HANDLE_RETURN inside the except handler. If that HANDLE_RETURN also
raises, Python's implicit chaining would emit a confusing "During
handling of the above exception, another exception occurred" message
that buries the real CUDA error. Make the causal relationship explicit
with `raise commit_exc from orig_exc`.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent a14557b commit bbaff7c
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
934 | | - | |
| 934 | + | |
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
938 | | - | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
939 | 942 | | |
940 | 943 | | |
941 | 944 | | |
| |||
0 commit comments