Skip to content

Commit 959cdf0

Browse files
committed
feat(exc): Add UnknownColorOption
e.g. invalid Server(color=...) argument
1 parent 2fdfc1c commit 959cdf0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/libtmux/exc.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ class UnknownOption(OptionError):
4141
"""Option unknown to tmux show-option(s) or show-window-option(s)."""
4242

4343

44+
class UnknownColorOption(UnknownOption):
45+
46+
"""Unknown color option."""
47+
48+
def __init__(self, *args: object):
49+
return super().__init__("Server.colors must equal 88 or 256")
50+
51+
4452
class InvalidOption(OptionError):
4553

4654
"""Option invalid to tmux, introduced in tmux v2.4."""

0 commit comments

Comments
 (0)