electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 99845942e5cef1b8e77efb32ca17a107940217c1
parent e42120cac51e0897354e3f4a3703b6df1bcda383
Author: SomberNight <somber.night@protonmail.com>
Date:   Mon, 22 Feb 2021 20:11:14 +0100

DeviceMgr: don't mark client as failing if create_client() is None

Otherwise the exception raised by client.label() would seem important.

Diffstat:
Melectrum/plugin.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/electrum/plugin.py b/electrum/plugin.py @@ -598,6 +598,8 @@ class DeviceMgr(ThreadJob): continue try: client = self.create_client(device, handler, plugin) + if not client: + continue label = client.label() is_initialized = client.is_initialized() soft_device_id = client.get_soft_device_id() @@ -607,8 +609,6 @@ class DeviceMgr(ThreadJob): if include_failing_clients: infos.append(DeviceInfo(device=device, exception=e, plugin_name=plugin.name)) continue - if not client: - continue infos.append(DeviceInfo(device=device, label=label, initialized=is_initialized,