From 1b3f450267892fee5a5d78fdc2aee20650d28da2 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 16 Aug 2015 11:43:59 +0200 Subject: [PATCH] fix #1401 --- gui/qt/main_window.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 21ec426ea..b60e8f29f 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -1239,9 +1239,10 @@ class ElectrumWindow(QMainWindow): outputs, fee, tx_desc, coins = r try: tx = self.wallet.make_unsigned_transaction(coins, outputs, self.config, fee) - if not tx: - raise BaseException(_("Insufficient funds")) - except Exception as e: + except NotEnoughFunds: + self.show_message(_("Insufficient funds")) + return + except BaseException as e: traceback.print_exc(file=sys.stdout) self.show_message(str(e)) return