Repository navigation
Commit a118c34
Raise TypeError for a non-object .py bundle manifest
Nothing catches the error from _load_policyengine_bundle, which runs at
import, and only a unit test pinned RuntimeError, so the type check now
raises TypeError and needs no TRY004 suppression. The changelog fragment
also describes the contextlib.suppress blocks and the narrowed catches.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent a77d0bc commit a118c34
3 files changed
Lines changed: 3 additions & 3 deletions
File tree
- changelog.d
- policyengine_api
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
0 commit comments