Commit be2ed09
committed
raise_if_dead(fix[FileNotFoundError]): Catch FileNotFoundError for invalid tmux_bin
why: subprocess.check_call raises FileNotFoundError when tmux_bin points to
a nonexistent path, leaking a raw exception instead of TmuxCommandNotFound.
what:
- Wrap subprocess.check_call in try/except FileNotFoundError
- Add test_tmux_bin_invalid_path_raise_if_dead test case1 parent c4bf7d0 commit be2ed09
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
240 | 243 | | |
241 | 244 | | |
242 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
0 commit comments