From f9cd1e319ed5e5a00b5b73c96ccdb72b7b36f358 Mon Sep 17 00:00:00 2001 From: Hannes Klinckaert Date: Tue, 3 Sep 2019 00:33:45 +0200 Subject: [PATCH] change decode again --- chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat.py b/chat.py index 8cde872..8064eac 100644 --- a/chat.py +++ b/chat.py @@ -90,7 +90,7 @@ def messages_post(): return "OK" if sender != "somebody": - message = "<" + sender.decode() + "> " + message + message = "<" + sender + "> " + message.decode() messages.append(Message(time, sender, sendertype, str(message, "UTF-8"))) url = 'http://10.0.5.42:8000/' # Set destination URL here