mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
kivy: catch NotEnoughFunds
This commit is contained in:
parent
219461ef57
commit
b9776201ce
1 changed files with 4 additions and 1 deletions
|
@ -18,7 +18,7 @@ from kivy.lang import Builder
|
|||
from kivy.factory import Factory
|
||||
from kivy.utils import platform
|
||||
|
||||
from electrum.util import profiler, parse_URI, format_time, InvalidPassword
|
||||
from electrum.util import profiler, parse_URI, format_time, InvalidPassword, NotEnoughFunds
|
||||
from electrum import bitcoin
|
||||
from electrum.util import timestamp_to_datetime
|
||||
from electrum.plugins import run_hook
|
||||
|
@ -260,6 +260,9 @@ class SendScreen(CScreen):
|
|||
config = self.app.electrum_config
|
||||
try:
|
||||
tx = self.app.wallet.make_unsigned_transaction(coins, outputs, config, None)
|
||||
except NotEnoughFunds:
|
||||
self.app.show_error(_("Not enough funds"))
|
||||
return
|
||||
except Exception as e:
|
||||
traceback.print_exc(file=sys.stdout)
|
||||
self.app.show_error(str(e))
|
||||
|
|
Loading…
Add table
Reference in a new issue