Commit c8e7562
committed
fix: chain exceptions with 'from' in missed raise sites
Follow-up to #2564 which fixed 12 sites. These 4 were missed:
- resources/templates.py: add 'from e' to preserve exception chain
- in_memory_task_store.py: add 'from None' (same type, better message)
- prompts/base.py: add 'from None' and 'from e' to two raise sites1 parent 161834d commit c8e7562
3 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
0 commit comments