From 85b7df1d601ee42360473f5930593c1faad36e29 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sun, 13 Jan 2013 20:48:16 -0800 Subject: [PATCH] Fix accidental change When I was moving things around with pep8, I moved this push_response out of the if/elif, but it shouldn't have been moved. --- backends/bitcoind/blockchain_processor.py | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/backends/bitcoind/blockchain_processor.py b/backends/bitcoind/blockchain_processor.py index cb64178..865d72a 100644 --- a/backends/bitcoind/blockchain_processor.py +++ b/backends/bitcoind/blockchain_processor.py @@ -627,10 +627,9 @@ class BlockchainProcessor(Processor): return -1 if error: - response = {'id': message_id, 'error': error} + self.push_response({'id': message_id, 'error': error}) elif result != '': - response = {'id': message_id, 'result': result} - self.push_response(response) + self.push_response({'id': message_id, 'result': result}) def watch_address(self, addr): if addr not in self.watched_addresses: -- 1.7.1