From f7f8f1ee8fd9ed6c4fc6ca040bb86c5e9039ae89 Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 23 Apr 2020 12:57:36 +0200 Subject: do introduction before starting the client; ask for the password when the name is registered --- asciifarmclient/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'asciifarmclient/connection.py') diff --git a/asciifarmclient/connection.py b/asciifarmclient/connection.py index bdcc913..707a02e 100644 --- a/asciifarmclient/connection.py +++ b/asciifarmclient/connection.py @@ -25,7 +25,7 @@ class Connection: return None datastr = databytes.decode('utf-8') msg = json.loads(datastr) - message = messages.messages[msg[0]].from_json(msg) + message = messages.message_from_json(msg) return message def listen(self, callback, onError): -- cgit