Browse Source

coldcard: don't raise when get_soft_device_id can't get xpub.

This allows uninitialized coldcards to show up in the device list.
master
Sander van Grieken 2 years ago
parent
commit
94a6f6cd0e
  1. 6
      electrum/plugins/coldcard/coldcard.py

6
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 '<CKCCClient: xfp=%s label=%r>' % (xfp2str(self.dev.master_fingerprint),
self.label())

Loading…
Cancel
Save