diff --git a/CHANGES b/CHANGES index fc1fb7198..3916bf5dc 100644 --- a/CHANGES +++ b/CHANGES @@ -14,6 +14,10 @@ $ pip install --user --upgrade --pre libtmux +### Bug fix + +- `tmux_cmd()`: Fix raise of TmuxCommandNotFound (#450) + ## libtmux 0.15.8 (2022-10-02) ### Bug fix diff --git a/src/libtmux/common.py b/src/libtmux/common.py index b4465425e..5376f8ef3 100644 --- a/src/libtmux/common.py +++ b/src/libtmux/common.py @@ -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