From ed2ab5e3c1375d4971cec771cb6f5872835b0274 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 25 Nov 2015 11:37:10 +0100 Subject: [PATCH] websockets: minor fix --- lib/websockets.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/websockets.py b/lib/websockets.py index e8ea402c8..4730a5ebd 100644 --- a/lib/websockets.py +++ b/lib/websockets.py @@ -91,9 +91,10 @@ class WsClientThread(util.DaemonThread): method = r.get('method') params = r.get('params') result = r.get('result') + if result is None: + continue if method == 'blockchain.address.subscribe': - if result is not None: - self.network.send([('blockchain.address.get_balance', params)], self.response_queue.put) + self.network.send([('blockchain.address.get_balance', params)], self.response_queue.put) elif method == 'blockchain.address.get_balance': addr = params[0] l = self.subscriptions.get(addr, [])