1
0

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

This allows uninitialized coldcards to show up in the device list.
This commit is contained in:
Sander van Grieken
2023-09-25 16:05:18 +02:00
parent e346d36851
commit 94a6f6cd0e

View File

@@ -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())