aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-04-14 10:02:37 -0700
committerGravatar MarkKoz <[email protected]>2020-06-13 11:21:03 -0700
commit66a3af006a7e9928afd55d0f4ccf48d886b79487 (patch)
tree60e9f503796e38e290849027390e70b071ff401b
parentCode block: make invalid backticks a constant set (diff)
Code block: simplify log message
-rw-r--r--bot/cogs/codeblock/cog.py5
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