commit 4cc76c8a64ef41efb05a1e5f83e6416a4beb588e
parent 227f3973a631fbfa9a7332a03a1e83c616a7f62d
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 15 Oct 2016 10:57:18 +0200
bump_fee: fix error message
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git 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
@@ -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