Skip to content

Commit 4de139e

Browse files
authored
Merge pull request #3679 from bcapener/remove-leftover-code
Remove leftover code from previous commit
2 parents 2ffd9d6 + dab648c commit 4de139e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,4 @@ The following people have contributed to the development of Rich:
9191
- [L. Yeung](https://github.com/lewis-yeung)
9292
- [chthollyphile](https://github.com/chthollyphile)
9393
- [Jonathan Helmus](https://github.com/jjhelmus)
94+
- [Brandon Capener](https://github.com/bcapener)

rich/style.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ def parse(cls, style_definition: str) -> "Style":
524524
if not word:
525525
raise errors.StyleSyntaxError("color expected after 'on'")
526526
try:
527-
Color.parse(word) is None
527+
Color.parse(word)
528528
except ColorParseError as error:
529529
raise errors.StyleSyntaxError(
530530
f"unable to parse {word!r} as background color; {error}"

0 commit comments

Comments
 (0)