Skip to content

Commit 4d75ab8

Browse files
authored
fix(tmux_cmd): Fix error in raise (#450)
2 parents 399f2e6 + 6848267 commit 4d75ab8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGES

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ $ pip install --user --upgrade --pre libtmux
1414

1515
<!-- Maintainers and contributors: Insert change notes for the next release above -->
1616

17+
### Bug fix
18+
19+
- `tmux_cmd()`: Fix raise of TmuxCommandNotFound (#450)
20+
1721
## libtmux 0.15.8 (2022-10-02)
1822

1923
### Bug fix

src/libtmux/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class tmux_cmd:
233233
def __init__(self, *args: t.Any, **kwargs: t.Any) -> None:
234234
tmux_bin = shutil.which("tmux")
235235
if not tmux_bin:
236-
raise (exc.TmuxCommandNotFound)
236+
raise exc.TmuxCommandNotFound()
237237

238238
cmd = [tmux_bin]
239239
cmd += args # add the command arguments to cmd

0 commit comments

Comments
 (0)