hw plugins: coldcard: log error when I forget to set udev rules
so that next time I check that before changing cables, usb hubs, and VMs o.O
This commit is contained in:
@@ -72,7 +72,11 @@ class CKCCClient(HardwareClientBase):
|
||||
else:
|
||||
# open the real HID device
|
||||
hd = hid.device(path=dev_path)
|
||||
hd.open_path(dev_path)
|
||||
try:
|
||||
hd.open_path(dev_path)
|
||||
except OSError:
|
||||
_logger.error('cannot open hid path. Did you forget to configure udev rules?')
|
||||
raise
|
||||
|
||||
self.dev = ElectrumColdcardDevice(dev=hd, encrypt=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user