diff --git a/lib/websockets.py b/lib/websockets.py index 21f302f23..38976b647 100644 --- a/lib/websockets.py +++ b/lib/websockets.py @@ -97,7 +97,7 @@ class WsClientThread(util.DaemonThread): elif method == 'blockchain.address.get_balance': addr = params[0] l = self.subscriptions.get(addr, []) - for ws, amount in :l: + for ws, amount in l: if not ws.closed: if sum(result.values()) >=amount: ws.sendMessage(unicode('paid'))