summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jh-discord.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jh-discord.py b/jh-discord.py
index d9b25ad..4d27b5a 100644
--- a/jh-discord.py
+++ b/jh-discord.py
@@ -97,7 +97,7 @@ async def on_message(message):
has_lock = False
try:
- msg = bytes(message.clean_content.replace('\n', ' '), "utf8")
+ msg = bytes(message.clean_content.replace('\n', ' '), "utf8", 'strict')
server_mutex.acquire()
has_lock = True