log formatting fix

This commit is contained in:
Lex Berezhny 2018-10-16 11:56:53 -04:00
parent c6b32fa946
commit 382ebb55b9
2 changed files with 3 additions and 3 deletions

View file

@ -355,7 +355,7 @@ class BaseAccount:
def get_utxo_count(self, **constraints):
return self.ledger.db.get_utxo_count(account=self, **constraints)
def get_transactions(self, **constraints) -> List['basetransaction.BaseTransaction']:
def get_transactions(self, **constraints):
return self.ledger.db.get_transactions(account=self, **constraints)
def get_transaction_count(self, **constraints):

View file

@ -50,12 +50,12 @@ class BaseNetwork:
async def start(self):
self.running = True
for server in cycle(self.config['default_servers']):
connection_string = 'tcp:{}:{}'.format(*server)
connection_string = '{}:{}'.format(*server)
self.client = ClientSession(*server, network=self)
try:
await self.client.create_connection()
await self.ensure_server_version()
log.info("Successfully connected to SPV wallet server: %s", )
log.info("Successfully connected to SPV wallet server: %s", connection_string)
self._on_connected_controller.add(True)
await self.client.on_disconnected.first
except Exception: # pylint: disable=broad-except