diff options
| author | 2018-03-17 22:40:12 +0000 | |
|---|---|---|
| committer | 2018-03-17 22:40:12 +0000 | |
| commit | 07179b389f7c9cb4a81092c4c954aafa397cd225 (patch) | |
| tree | 886edeadc93a1ffd202eac9a8d0c65a9476e1c8d | |
| parent | Prevent bots from triggering codeblock detection (diff) | |
PEP8, sorry :pensive:
| -rw-r--r-- | bot/cogs/bot.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/cogs/bot.py b/bot/cogs/bot.py index 72f002b42..f4f91ce33 100644 --- a/bot/cogs/bot.py +++ b/bot/cogs/bot.py @@ -150,9 +150,9 @@ class Bot: self.channel_cooldowns[msg.channel.id] = time.time() 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") + log.trace(f"{msg.author} posted in a help channel, and when we tried to parse it as Python " + f"code, ast.parse raised a SyntaxError. This probably just means it wasn't Python " + f"code. The message that was posted was:\n\n{msg.content}\n\n") pass |