From 4cc76c8a64ef41efb05a1e5f83e6416a4beb588e Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 15 Oct 2016 10:57:18 +0200 Subject: [PATCH] bump_fee: fix error message --- gui/qt/main_window.py | 2 +- lib/wallet.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 2fb86c25..387fd4c3 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -2633,7 +2633,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): try: new_tx = self.wallet.bump_fee(tx, delta) except BaseException as e: - self.show_error(e) + self.show_error(str(e)) return if is_final: new_tx.set_sequence(0xffffffff) diff --git a/lib/wallet.py b/lib/wallet.py index 9a77f567..cf7ab60e 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -1020,7 +1020,7 @@ class Abstract_Wallet(PrintError): outputs[i] = otype, address, value - delta break else: - raise BaseException("cannot bump fee") + raise BaseException("cannot bump fee: could not find a change output") new_tx = Transaction.from_io(inputs, outputs) return new_tx