Commit d280547
committed
tmux_cmd(fix[FileNotFoundError]): Raise TmuxCommandNotFound for invalid tmux_bin
why: Invalid custom tmux_bin raised raw FileNotFoundError from subprocess
instead of the domain-specific TmuxCommandNotFound, creating an
inconsistent API surface.
what:
- Catch FileNotFoundError before generic Exception in tmux_cmd.__init__
- Re-raise as TmuxCommandNotFound from None
- Update test_tmux_bin_invalid_path to expect TmuxCommandNotFound1 parent a6a72df commit d280547
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
| 280 | + | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
436 | 438 | | |
437 | | - | |
| 439 | + | |
438 | 440 | | |
0 commit comments