fix uncaught error

This commit is contained in:
Jack Robison 2020-11-04 15:33:19 -05:00
parent 5517d2bf56
commit d83936a66a
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -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