From 06d5e365648f58333025657c1682ca64171573da Mon Sep 17 00:00:00 2001 From: Inso <insomniak.fr@gmail.com> Date: Wed, 14 Oct 2015 19:42:54 +0200 Subject: [PATCH] More verbose logging --- src/cutecoin/core/net/node.py | 6 ++++-- src/cutecoin/gui/identities_tab.py | 4 ---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/cutecoin/core/net/node.py b/src/cutecoin/core/net/node.py index 19c71e96..845b64bb 100644 --- a/src/cutecoin/core/net/node.py +++ b/src/cutecoin/core/net/node.py @@ -302,7 +302,8 @@ class Node(QObject): except ValueError as e: if '404' in str(e): self.main_chain_previous_block = None - logging.debug("Error in block reply") + logging.debug("Error in previous block reply : {0}".format(self.pubkey)) + logging.debug(str(e)) self.changed.emit() except ClientError: logging.debug("Client error : {0}".format(self.pubkey)) @@ -319,7 +320,8 @@ class Node(QObject): if '404' in str(e): self.main_chain_previous_block = None self.set_block(None) - logging.debug("Error in block reply") + logging.debug("Error in block reply : {0}".format(self.pubkey)) + logging.debug(str(e)) self.changed.emit() except ClientError: logging.debug("Client error : {0}".format(self.pubkey)) diff --git a/src/cutecoin/gui/identities_tab.py b/src/cutecoin/gui/identities_tab.py index 587b7128..c54fe9bc 100644 --- a/src/cutecoin/gui/identities_tab.py +++ b/src/cutecoin/gui/identities_tab.py @@ -163,10 +163,6 @@ class IdentitiesTabWidget(QWidget, Ui_IdentitiesTab): @asyncify @asyncio.coroutine def send_money_to_identity(self, identity): - if isinstance(identity, str): - pubkey = identity - else: - pubkey = identity.pubkey result = yield from TransferMoneyDialog.send_money_to_identity(self.app, self.account, self.password_asker, self.community, identity) if result == QDialog.Accepted: -- GitLab