From a597e26541cda738bf274b95bde82d1293c6cd31 Mon Sep 17 00:00:00 2001 From: Tafelpoot Date: Thu, 23 Oct 2014 13:48:12 +0200 Subject: [PATCH] fixed access to tx.error in case tx is None --- gui/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 index 118a07127..7ad7f7dc6 100644 --- 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))