fix abe crash (blockindexing stops) on limit reached for get_address_out_rows in...
authorEagle[TM] <eagletm@mpex.net>
Thu, 27 Dec 2012 07:39:31 +0000 (08:39 +0100)
committerEagle[TM] <eagletm@mpex.net>
Thu, 27 Dec 2012 07:39:31 +0000 (08:39 +0100)
backends/abe/__init__.py

index 251dc13..7a2cb02 100644 (file)
@@ -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()