forked from LBRYCommunity/lbry-sdk
fix uncaught error
This commit is contained in:
parent
5517d2bf56
commit
d83936a66a
1 changed files with 8 additions and 6 deletions
|
@ -478,12 +478,14 @@ class Ledger(metaclass=LedgerRegistry):
|
||||||
for address, remote_status in zip(batch, results):
|
for address, remote_status in zip(batch, results):
|
||||||
self._update_tasks.add(self.update_history(address, remote_status, address_manager))
|
self._update_tasks.add(self.update_history(address, remote_status, address_manager))
|
||||||
addresses_remaining = addresses_remaining[batch_size:]
|
addresses_remaining = addresses_remaining[batch_size:]
|
||||||
log.info("subscribed to %i/%i addresses on %s:%i", len(addresses) - len(addresses_remaining),
|
if self.network.client and self.network.client.server_address_and_port:
|
||||||
len(addresses), *self.network.client.server_address_and_port)
|
log.info("subscribed to %i/%i addresses on %s:%i", len(addresses) - len(addresses_remaining),
|
||||||
log.info(
|
len(addresses), *self.network.client.server_address_and_port)
|
||||||
"finished subscribing to %i addresses on %s:%i", len(addresses),
|
if self.network.client and self.network.client.server_address_and_port:
|
||||||
*self.network.client.server_address_and_port
|
log.info(
|
||||||
)
|
"finished subscribing to %i addresses on %s:%i", len(addresses),
|
||||||
|
*self.network.client.server_address_and_port
|
||||||
|
)
|
||||||
|
|
||||||
def process_status_update(self, update):
|
def process_status_update(self, update):
|
||||||
address, remote_status = update
|
address, remote_status = update
|
||||||
|
|
Loading…
Reference in a new issue