mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Trivia] Fix string interpolation in test errors (#5955)
Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
parent
e2737a08d2
commit
ab8f00ae7b
@ -26,7 +26,7 @@ def test_trivia_lists():
|
|||||||
except InvalidListError as exc:
|
except InvalidListError as exc:
|
||||||
e = exc.__cause__
|
e = exc.__cause__
|
||||||
if isinstance(e, SchemaError):
|
if isinstance(e, SchemaError):
|
||||||
problem_lists.append((l.stem, f"SCHEMA error:\n{e!s}"))
|
problem_lists.append((l.stem, f"SCHEMA error:\n{format_schema_error(e)}"))
|
||||||
else:
|
else:
|
||||||
problem_lists.append((l.stem, f"YAML error:\n{e!s}"))
|
problem_lists.append((l.stem, f"YAML error:\n{e!s}"))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user