Repository navigation
Commit 14a7d5e
docs(resilience): clarify __cause__ assignment + pragma rationale
- retry.py: add inline comment to wrapped.__cause__ = exc explaining it
is load-bearing on the retry path (last_exc = wrapped) where no `raise
... from ...` clause sets the cause. Prevents future "cleanup" that
silently breaks exhaustion chain display.
- test_retry.py: expand the pragma rationale to record how it was
verified the assertions still execute (intentional break → test fails).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 365cd5a commit 14a7d5e
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | | - | |
260 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
0 commit comments