electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit c226b29ff42afe83744944a270cfdd5819ded399
parent 11fc93dc4add165b9ad69aee24ab45e81be2859d
Author: ThomasV <thomasv1@gmx.de>
Date:   Thu, 23 Oct 2014 15:59:21 +0200

Merge pull request #898 from Tafelpoot/tx_fix

fixed access to tx.error in case tx is None
Diffstat:
Mgui/qt/main_window.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -1079,7 +1079,10 @@ class ElectrumWindow(QMainWindow): try: tx = self.wallet.make_unsigned_transaction(outputs, fee, None, coins = coins) - tx.error = None + if not tx: + raise BaseException(_("Insufficient funds")) + else: + tx.error = None except Exception as e: traceback.print_exc(file=sys.stdout) self.show_message(str(e))