aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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