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,8 +478,10 @@ 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:]
|
||||||
|
if self.network.client and self.network.client.server_address_and_port:
|
||||||
log.info("subscribed to %i/%i addresses on %s:%i", len(addresses) - len(addresses_remaining),
|
log.info("subscribed to %i/%i addresses on %s:%i", len(addresses) - len(addresses_remaining),
|
||||||
len(addresses), *self.network.client.server_address_and_port)
|
len(addresses), *self.network.client.server_address_and_port)
|
||||||
|
if self.network.client and self.network.client.server_address_and_port:
|
||||||
log.info(
|
log.info(
|
||||||
"finished subscribing to %i addresses on %s:%i", len(addresses),
|
"finished subscribing to %i addresses on %s:%i", len(addresses),
|
||||||
*self.network.client.server_address_and_port
|
*self.network.client.server_address_and_port
|
||||||
|
|
Loading…
Reference in a new issue