tbump_fee: fix error message - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 4cc76c8a64ef41efb05a1e5f83e6416a4beb588e DIR parent 227f3973a631fbfa9a7332a03a1e83c616a7f62d HTML Author: ThomasV <thomasv@electrum.org> Date: Sat, 15 Oct 2016 10:57:18 +0200 bump_fee: fix error message Diffstat: M gui/qt/main_window.py | 2 +- M lib/wallet.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py t@@ -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) DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -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