diff options
| author | 2020-06-27 16:50:16 -0700 | |
|---|---|---|
| committer | 2020-06-27 16:50:16 -0700 | |
| commit | c7d466a36d5775eb0a373242b7e4214b4534ad20 (patch) | |
| tree | 63d739bfcb56045c0889a2afef19880b25ee7b73 | |
| parent | HelpChannels: 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.py | 4 |
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, ) |