Skip to content

Commit aae70b5

Browse files
committed
ruff(chore): Manual fixes for cli/utils.py via new exceptions
src/tmuxp/cli/utils.py:218:19: TRY003 Avoid specifying long messages outside the exception class src/tmuxp/cli/utils.py:224:19: TRY003 Avoid specifying long messages outside the exception class
1 parent 240272a commit aae70b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tmuxp/cli/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,13 @@ def style(
218218
try:
219219
bits.append(f"\033[{_interpret_color(fg)}m")
220220
except KeyError:
221-
raise TypeError(f"Unknown color {fg!r}") from None
221+
raise UnknownStyleColor(color=fg) from None
222222

223223
if bg:
224224
try:
225225
bits.append(f"\033[{_interpret_color(bg, 10)}m")
226226
except KeyError:
227-
raise TypeError(f"Unknown color {bg!r}") from None
227+
raise UnknownStyleColor(color=bg) from None
228228

229229
if bold is not None:
230230
bits.append(f"\033[{1 if bold else 22}m")

0 commit comments

Comments
 (0)