1
0

fix fee ui: offline case

This commit is contained in:
SomberNight
2017-12-30 01:10:20 +01:00
parent 9d4dd20b23
commit 6f954090e6
3 changed files with 24 additions and 8 deletions

View File

@@ -47,6 +47,12 @@ def normalize_version(v):
class NotEnoughFunds(Exception): pass
class NoDynamicFeeEstimates(Exception):
def __str__(self):
return _('Dynamic fee estimates not available')
class InvalidPassword(Exception):
def __str__(self):
return _("Incorrect password")

View File

@@ -42,7 +42,8 @@ from numbers import Number
import sys
from .i18n import _
from .util import NotEnoughFunds, PrintError, UserCancelled, profiler, format_satoshis
from .util import (NotEnoughFunds, PrintError, UserCancelled, profiler,
format_satoshis, NoDynamicFeeEstimates)
from .bitcoin import *
from .version import *
@@ -884,7 +885,7 @@ class Abstract_Wallet(PrintError):
raise NotEnoughFunds()
if fixed_fee is None and config.fee_per_kb() is None:
raise BaseException('Dynamic fee estimates not available')
raise NoDynamicFeeEstimates()
for item in inputs:
self.add_input_info(item)