Skip to content

fix(tmux_cmd): Fix error in raise #450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ $ pip install --user --upgrade --pre libtmux

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

### Bug fix

- `tmux_cmd()`: Fix raise of TmuxCommandNotFound (#450)

## libtmux 0.15.8 (2022-10-02)

### Bug fix
Expand Down
2 changes: 1 addition & 1 deletion src/libtmux/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class tmux_cmd:
def __init__(self, *args: t.Any, **kwargs: t.Any) -> None:
tmux_bin = shutil.which("tmux")
if not tmux_bin:
raise (exc.TmuxCommandNotFound)
raise exc.TmuxCommandNotFound()

cmd = [tmux_bin]
cmd += args # add the command arguments to cmd
Expand Down