Skip to content

Commit 5133fb4

Browse files
committed
chore(Window): More resilent handling of options that return without value
1 parent 42f3232 commit 5133fb4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libtmux/window.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,10 @@ def show_window_options(self, g: t.Optional[bool] = False) -> "WindowOptionDict"
389389

390390
window_options: "WindowOptionDict" = {}
391391
for item in output:
392-
key, val = shlex.split(item)
392+
try:
393+
key, val = shlex.split(item)
394+
except ValueError:
395+
logger.exception(f"Error extracting option: {item}")
393396
assert isinstance(key, str)
394397
assert isinstance(val, str)
395398

0 commit comments

Comments
 (0)