From 18c5cedf0dbc3613a076c4bfa65d0384dc702bae Mon Sep 17 00:00:00 2001 From: Jussi Tiira Date: Tue, 1 Oct 2019 20:39:21 +0300 Subject: [PATCH] bugfix: decode binary mode string At least with the latest stable python (3.7) msg was in binary format which resulted in a fatal exception. --- fbridge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbridge.py b/fbridge.py index 3f830ec..335a0de 100644 --- a/fbridge.py +++ b/fbridge.py @@ -53,7 +53,7 @@ def listen(fbClient): for msg in r.iter_lines(): if msg: print(msg) - jmsg = json.loads(msg) + jmsg = json.loads(msg.decode()) if jmsg["gateway"] == "": continue