Commit 3d4057d
committed
Fix CI: use TypeError for the NoVcsSuperProject check in replay-patches
ruff's TRY004 (enabled by the ruff 0.16.4 bump already on main) flagged
_validate_superproject's RuntimeError for an isinstance check. diff.py and
update_patch.py already use TypeError for the identical NoVcsSuperProject
check (near word-for-word same message) -- replay_patches.py was the odd
one out. Match the existing convention; both are handled identically by
__main__.py's top-level except (RuntimeError, TypeError).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A7miizBGMoLEXXZxuq6XUJ1 parent da6e748 commit 3d4057d
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
0 commit comments