From bcf6f33f21e09dc97398a118b31fd6618615e9fe Mon Sep 17 00:00:00 2001 From: Brandon Capener Date: Sat, 29 Mar 2025 20:33:38 -0600 Subject: [PATCH 1/2] remove code leftover from previous commit --- rich/style.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rich/style.py b/rich/style.py index 262fd6ecad..835d06f3eb 100644 --- a/rich/style.py +++ b/rich/style.py @@ -524,7 +524,7 @@ def parse(cls, style_definition: str) -> "Style": if not word: raise errors.StyleSyntaxError("color expected after 'on'") try: - Color.parse(word) is None + Color.parse(word) except ColorParseError as error: raise errors.StyleSyntaxError( f"unable to parse {word!r} as background color; {error}" From dab648cc486025c8613fd5dd5761b67ac188dc35 Mon Sep 17 00:00:00 2001 From: Brandon Capener Date: Sat, 29 Mar 2025 21:03:45 -0600 Subject: [PATCH 2/2] update CONTRIBUTORS.md --- CONTRIBUTORS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index d8985ca138..9893915a4a 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -91,3 +91,4 @@ The following people have contributed to the development of Rich: - [L. Yeung](https://github.com/lewis-yeung) - [chthollyphile](https://github.com/chthollyphile) - [Jonathan Helmus](https://github.com/jjhelmus) +- [Brandon Capener](https://github.com/bcapener)