Skip to content

Commit

Permalink
Avoid repetition in error message of invalid color tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Delgan committed Mar 28, 2023
1 parent d51903c commit 5ad4f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loguru/_colorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def feed(self, text, *, raw=False):

if ansi is None:
raise ValueError(
'Tag "%s" does not correspond to any known color tag, '
'Tag "%s" does not correspond to any known color directive, '
"make sure you did not misspelled it (or prepend '\\' to escape it)"
% markup
)
Expand Down

0 comments on commit 5ad4f96

Please sign in to comment.