From 42321d7bc69ab6d6f87e97d4295b13844243ba70 Mon Sep 17 00:00:00 2001 From: Eagle[TM] Date: Thu, 27 Dec 2012 08:39:31 +0100 Subject: [PATCH] fix abe crash (blockindexing stops) on limit reached for get_address_out_rows in main loop --- backends/abe/__init__.py | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/backends/abe/__init__.py b/backends/abe/__init__.py index 251dc13..7a2cb02 100644 --- a/backends/abe/__init__.py +++ b/backends/abe/__init__.py @@ -797,8 +797,11 @@ class BlockchainProcessor(Processor): except: break if addr in self.watched_addresses: - status = self.store.get_status( addr ) - self.push_response({ 'id': None, 'method':'blockchain.address.subscribe', 'params':[addr, status] }) + try: + status = self.store.get_status( addr ) + self.push_response({ 'id': None, 'method':'blockchain.address.subscribe', 'params':[addr, status] }) + except: + break threading.Timer(10, self.run_store_iteration).start() -- 1.7.1