diff --git a/electrum/synchronizer.py b/electrum/synchronizer.py index fea8ac2cd..3c9435754 100644 --- a/electrum/synchronizer.py +++ b/electrum/synchronizer.py @@ -34,7 +34,6 @@ from . import util from .transaction import Transaction, PartialTransaction from .util import bh2u, make_aiohttp_session, NetworkJobOnDefaultServer, random_shuffled_copy from .bitcoin import address_to_scripthash, is_address -from .network import UntrustedServerReturnedError from .logging import Logger from .interface import GracefulDisconnect @@ -212,7 +211,7 @@ class Synchronizer(SynchronizerBase): self._requests_sent += 1 try: raw_tx = await self.interface.get_transaction(tx_hash) - except UntrustedServerReturnedError as e: + except RPCError as e: # most likely, "No such mempool or blockchain transaction" if allow_server_not_finding_tx: self.requested_tx.pop(tx_hash)