From 7de9a93db156e948f6b0efd37f62345f53db7fd3 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Thu, 13 Oct 2022 19:20:55 -0500 Subject: [PATCH 1/2] fix(tmux_cmd): Fix error in raise --- src/libtmux/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 6848267b9aef8f037fe2872c641c6cedcbacf866 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 30 Oct 2022 12:33:32 -0500 Subject: [PATCH 2/2] docs(CHANGES): Note fix for tmux_cmd --- CHANGES | 4 ++++ 1 file changed, 4 insertions(+) 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