tfollow-up prev: network.interface might be None - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit a7c02c770dea8cbb11706ffee8579c402c3768e6 DIR parent 133d74adfb4f5d0401caf50943473b129784b8ae HTML Author: SomberNight <somber.night@protonmail.com> Date: Fri, 13 Mar 2020 18:07:05 +0100 follow-up prev: network.interface might be None Diffstat: M electrum/network.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/network.py b/electrum/network.py t@@ -298,7 +298,7 @@ class Network(Logger): self.server_retry_time = time.time() self.nodes_retry_time = time.time() # the main server we are currently communicating with - self.interface = None # type: Interface + self.interface = None # type: Optional[Interface] self.default_server_changed_event = asyncio.Event() # set of servers we have an ongoing connection with self.interfaces = {} # type: Dict[str, Interface] t@@ -516,6 +516,8 @@ class Network(Logger): continue return out else: + if not self.interface: + return {} return self.interface.fee_estimates_eta def update_fee_estimates(self):