aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-03-13 19:52:58 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-03-13 19:52:58 +0100
commitf29355768dfaee55d6c7ab53b9f79e7d3647ae64 (patch)
treeeee0764276e57bbdb0f115c980b35f41417775f7
parent060ad955210572d5869807dad5f02dc7615a89b5 (diff)
downloaddiscord-f29355768dfaee55d6c7ab53b9f79e7d3647ae64.zip
discord-f29355768dfaee55d6c7ab53b9f79e7d3647ae64.tar.bz2
...
-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