Fix accidental change
authorBryan Stitt <bryan@stitthappens.com>
Mon, 14 Jan 2013 04:48:16 +0000 (20:48 -0800)
committerBryan Stitt <bryan@stitthappens.com>
Mon, 14 Jan 2013 04:48:16 +0000 (20:48 -0800)
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

index cb64178..865d72a 100644 (file)
@@ -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: