fix #4503
This commit is contained in:
@@ -69,7 +69,7 @@ Label.register('Roboto',
|
|||||||
|
|
||||||
|
|
||||||
from electrum.util import (base_units, NoDynamicFeeEstimates, decimal_point_to_base_unit_name,
|
from electrum.util import (base_units, NoDynamicFeeEstimates, decimal_point_to_base_unit_name,
|
||||||
base_unit_name_to_decimal_point)
|
base_unit_name_to_decimal_point, NotEnoughFunds)
|
||||||
|
|
||||||
|
|
||||||
class ElectrumWindow(App):
|
class ElectrumWindow(App):
|
||||||
@@ -714,6 +714,8 @@ class ElectrumWindow(App):
|
|||||||
except NoDynamicFeeEstimates as e:
|
except NoDynamicFeeEstimates as e:
|
||||||
Clock.schedule_once(lambda dt, bound_e=e: self.show_error(str(bound_e)))
|
Clock.schedule_once(lambda dt, bound_e=e: self.show_error(str(bound_e)))
|
||||||
return ''
|
return ''
|
||||||
|
except NotEnoughFunds:
|
||||||
|
return ''
|
||||||
amount = tx.output_value()
|
amount = tx.output_value()
|
||||||
__, x_fee_amount = run_hook('get_tx_extra_fee', self.wallet, tx) or (None, 0)
|
__, x_fee_amount = run_hook('get_tx_extra_fee', self.wallet, tx) or (None, 0)
|
||||||
amount_after_all_fees = amount - x_fee_amount
|
amount_after_all_fees = amount - x_fee_amount
|
||||||
|
|||||||
Reference in New Issue
Block a user