mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-11 14:45:31 +03:00
...
This commit is contained in:
parent
3a8362ca2b
commit
190048080c
2
kitty/rgb.py
generated
2
kitty/rgb.py
generated
@ -70,7 +70,7 @@ def to_color(raw: str, validate: bool = False) -> Optional[Color]:
|
||||
elif raw.startswith('rgb:'):
|
||||
val = parse_rgb(raw[4:])
|
||||
if val is None and validate:
|
||||
raise ValueError(f'Invalid color name: {raw}')
|
||||
raise ValueError(f'Invalid color name: {raw!r}')
|
||||
return val
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user