diff --git a/contrib/pylightning/lightning/lightning.py b/contrib/pylightning/lightning/lightning.py index 29f0cb5a3..b8332c369 100644 --- a/contrib/pylightning/lightning/lightning.py +++ b/contrib/pylightning/lightning/lightning.py @@ -160,7 +160,7 @@ class UnixDomainSocketRpc(object): return objs, buff except ValueError: # Probably didn't read enough - pass + buff = buff.lstrip().encode("UTF-8") def _readobj(self, sock, buff=b''): """Read a JSON object, starting with buff; returns object and any buffer left over"""