diff options
| author | 2020-04-14 10:02:37 -0700 | |
|---|---|---|
| committer | 2020-06-13 11:21:03 -0700 | |
| commit | 66a3af006a7e9928afd55d0f4ccf48d886b79487 (patch) | |
| tree | 60e9f503796e38e290849027390e70b071ff401b | |
| parent | Code block: make invalid backticks a constant set (diff) | |
Code block: simplify log message
| -rw-r--r-- | bot/cogs/codeblock/cog.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/cogs/codeblock/cog.py b/bot/cogs/codeblock/cog.py index e435d036c..c49d7574c 100644 --- a/bot/cogs/codeblock/cog.py +++ b/bot/cogs/codeblock/cog.py @@ -346,9 +346,8 @@ class CodeBlockCog(Cog, name="Code Block"): description = self.format_guide_message(msg) except SyntaxError: log.trace( - f"{msg.author} posted in a help channel, and when we tried to parse it as Python code, " - "ast.parse raised a SyntaxError. This probably just means it wasn't Python code. " - f"The message that was posted was:\n\n{msg.content}\n\n" + f"SyntaxError while parsing code block sent by {msg.author}; " + f"code posted probably just wasn't Python:\n\n{msg.content}\n\n" ) return |