We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c894a21 commit fabef32Copy full SHA for fabef32
jackit/lib/nrf24.py
@@ -69,7 +69,7 @@ def __init__(self, index=0):
69
try:
70
self.dongle = list(usb.core.find(idVendor=0x1915, idProduct=0x0102, find_all=True))[index]
71
self.dongle.set_configuration()
72
- except usb.core.USBError as ex:
+ except (usb.core.NoBackendError, usb.core.USBError) as ex:
73
raise ex
74
except:
75
raise Exception('Cannot find USB dongle.')
0 commit comments