qml: don't catch-all when making tx for sweep finalizer
This commit is contained in:
@@ -11,7 +11,7 @@ from electrum.logging import get_logger
|
|||||||
from electrum.i18n import _
|
from electrum.i18n import _
|
||||||
from electrum.bitcoin import DummyAddress
|
from electrum.bitcoin import DummyAddress
|
||||||
from electrum.transaction import PartialTxOutput, PartialTransaction, Transaction, TxOutpoint
|
from electrum.transaction import PartialTxOutput, PartialTransaction, Transaction, TxOutpoint
|
||||||
from electrum.util import NotEnoughFunds, profiler, quantize_feerate, UserFacingException
|
from electrum.util import NotEnoughFunds, profiler, quantize_feerate, UserFacingException, NoDynamicFeeEstimates
|
||||||
from electrum.wallet import CannotBumpFee, CannotDoubleSpendTx, CannotCPFP, BumpFeeStrategy, sweep_preparations
|
from electrum.wallet import CannotBumpFee, CannotDoubleSpendTx, CannotCPFP, BumpFeeStrategy, sweep_preparations
|
||||||
from electrum import keystore
|
from electrum import keystore
|
||||||
from electrum.plugin import run_hook
|
from electrum.plugin import run_hook
|
||||||
@@ -1048,9 +1048,13 @@ class QETxSweepFinalizer(QETxFinalizer):
|
|||||||
try:
|
try:
|
||||||
# make unsigned transaction
|
# make unsigned transaction
|
||||||
tx = self.make_sweep_tx()
|
tx = self.make_sweep_tx()
|
||||||
except Exception as e:
|
except NoDynamicFeeEstimates:
|
||||||
self._logger.error(str(e))
|
self.warning = _('No dynamic fee estimates available')
|
||||||
self.warning = repr(e)
|
self._valid = False
|
||||||
|
self.validChanged.emit()
|
||||||
|
return
|
||||||
|
except NotEnoughFunds:
|
||||||
|
self.warning = _('Not enough funds')
|
||||||
self._valid = False
|
self._valid = False
|
||||||
self.validChanged.emit()
|
self.validChanged.emit()
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user