From 382ebb55b9653e744e34f9913bd5ae679a0e9c6a Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Tue, 16 Oct 2018 11:56:53 -0400 Subject: [PATCH] log formatting fix --- torba/baseaccount.py | 2 +- torba/basenetwork.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/torba/baseaccount.py b/torba/baseaccount.py index 7551c39c8..86e6d3cef 100644 --- a/torba/baseaccount.py +++ b/torba/baseaccount.py @@ -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): diff --git a/torba/basenetwork.py b/torba/basenetwork.py index f52d17cd9..f021dcb0d 100644 --- a/torba/basenetwork.py +++ b/torba/basenetwork.py @@ -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