tMerge pull request #898 from Tafelpoot/tx_fix - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit c226b29ff42afe83744944a270cfdd5819ded399 DIR parent 11fc93dc4add165b9ad69aee24ab45e81be2859d HTML 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: M gui/qt/main_window.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py t@@ -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))