Skip to content

Commit f35a26f

Browse files
committed
feat(cli[utils]): Add UnknownStyleColor
1 parent f536cb0 commit f35a26f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tmuxp/cli/utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@ def _interpret_color(
183183
return str(_ansi_colors[color] + offset)
184184

185185

186+
class UnknownStyleColor(Exception):
187+
def __init__(self, color: str, *args: object, **kwargs: object) -> None:
188+
return super().__init__(f"Unknown color {color!r}", *args, **kwargs)
189+
190+
186191
def style(
187192
text: t.Any,
188193
fg: t.Optional[t.Union[int, t.Tuple[int, int, int], str]] = None,

0 commit comments

Comments
 (0)