aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-06-27 16:50:16 -0700
committerGravatar MarkKoz <[email protected]>2020-06-27 16:50:16 -0700
commitc7d466a36d5775eb0a373242b7e4214b4534ad20 (patch)
tree63d739bfcb56045c0889a2afef19880b25ee7b73
parentHelpChannels: fix is_in_category call (diff)
Code block: fix BadLanguage creation
Forgot to change the kwarg names when the attributes were renamed.
-rw-r--r--bot/cogs/codeblock/parsing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/codeblock/parsing.py b/bot/cogs/codeblock/parsing.py
index 31cbd09b9..112ca12b6 100644
--- a/bot/cogs/codeblock/parsing.py
+++ b/bot/cogs/codeblock/parsing.py
@@ -148,6 +148,6 @@ def parse_bad_language(content: str) -> Optional[BadLanguage]:
return BadLanguage(
language=match["lang"],
- leading_spaces=match["spaces"] is not None,
- terminal_newline=match["newline"] is not None,
+ has_leading_spaces=match["spaces"] is not None,
+ has_terminal_newline=match["newline"] is not None,
)