From 94a6f6cd0e257e5acfa499a8042b0374bf02dccf Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Mon, 25 Sep 2023 16:05:18 +0200 Subject: [PATCH] coldcard: don't raise when get_soft_device_id can't get xpub. This allows uninitialized coldcards to show up in the device list. --- electrum/plugins/coldcard/coldcard.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/electrum/plugins/coldcard/coldcard.py b/electrum/plugins/coldcard/coldcard.py index 9c802f10d..43bc5a2e7 100644 --- a/electrum/plugins/coldcard/coldcard.py +++ b/electrum/plugins/coldcard/coldcard.py @@ -82,6 +82,12 @@ class CKCCClient(HardwareClientBase): def device_model_name(self) -> Optional[str]: return 'Coldcard' + def get_soft_device_id(self) -> Optional[str]: + try: + super().get_soft_device_id() + except Exception: + return None + def __repr__(self): return '' % (xfp2str(self.dev.master_fingerprint), self.label())