mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-17 03:48:09 +00:00
transport_hid: raise on missing debuglink
This commit is contained in:
parent
259a61878b
commit
52f96b3792
@ -78,6 +78,7 @@ class HidTransport(Transport):
|
|||||||
for debug in HidTransport.enumerate(debug=True):
|
for debug in HidTransport.enumerate(debug=True):
|
||||||
if debug.device['serial_number'] == self.device['serial_number']:
|
if debug.device['serial_number'] == self.device['serial_number']:
|
||||||
return debug
|
return debug
|
||||||
|
raise Exception('Debug HID device not found')
|
||||||
|
|
||||||
def open(self):
|
def open(self):
|
||||||
if self.hid:
|
if self.hid:
|
||||||
|
Loading…
Reference in New Issue
Block a user