Skip to content

Commit 9846f8a

Browse files
committed
chore(Window): More resilent handling of options that return without value
1 parent 2956d09 commit 9846f8a

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
@@ -479,7 +479,10 @@ def show_options(
479479

480480
window_options: "WindowOptionDict" = {}
481481
for item in output:
482-
key, val = shlex.split(item)
482+
try:
483+
key, val = shlex.split(item)
484+
except ValueError:
485+
logger.exception(f"Error extracting option: {item}")
483486
assert isinstance(key, str)
484487
assert isinstance(val, str)
485488

0 commit comments

Comments
 (0)