Skip to content

Commit 4ad7739

Browse files
committed
chore(Window): More resilent handling of options that return without value
1 parent a15f0cb commit 4ad7739

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libtmux/window.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,10 @@ def show_options(
472472

473473
window_options: "WindowOptionDict" = {}
474474
for item in output:
475-
key, val = shlex.split(item)
475+
try:
476+
key, val = shlex.split(item)
477+
except ValueError:
478+
logger.exception(f"Error extracting option: {item}")
476479
assert isinstance(key, str)
477480
assert isinstance(val, str)
478481

0 commit comments

Comments
 (0)