From 998c6eb860d3aa6ac51585c75c0ec49b6025bc0a Mon Sep 17 00:00:00 2001 From: random-zebra Date: Fri, 7 Dec 2018 11:15:28 +0100 Subject: [PATCH] process Ledger Exceptions when signing --- src/hwdevice.py | 2 +- src/tabRewards.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hwdevice.py b/src/hwdevice.py index 77c61f5..ed9132d 100644 --- a/src/hwdevice.py +++ b/src/hwdevice.py @@ -386,7 +386,7 @@ def signMessageFinish(self): - + @process_ledger_exceptions def signTxSign(self, ctrl): self.tx_raw = None with self.lock: diff --git a/src/tabRewards.py b/src/tabRewards.py index 6620e36..722f8bf 100644 --- a/src/tabRewards.py +++ b/src/tabRewards.py @@ -448,7 +448,8 @@ def FinishSend(self, serialized_tx, amount_to_send): message = '

Unable to decode TX- Broadcast anyway?

' mess1 = QMessageBox(QMessageBox.Information, 'Send transaction', message) - mess1.setDetailedText(json.dumps(decodedTx, indent=4, sort_keys=False)) + if decodedTx is not None: + mess1.setDetailedText(json.dumps(decodedTx, indent=4, sort_keys=False)) mess1.setStandardButtons(QMessageBox.Yes | QMessageBox.No) reply = mess1.exec_()