Commit 5df3158
committed
Coerce empty-string cause category to None (0068)
`_build_cause_chain` recorded an empty-string `category` verbatim, but
`CauseLink.category` is documented as a non-empty string or None and
`_derive_cause` already treats an empty string as no-category. Coerce it
to None so the chain representation matches. No exception carries an
empty-string category in practice; addresses PR review feedback.1 parent 3685329 commit 5df3158
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
0 commit comments