1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 11:58:13 +00:00

transport_hid: raise on missing debuglink

This commit is contained in:
Jan Pochyla 2017-09-04 13:44:19 +02:00
parent 259a61878b
commit 52f96b3792

View File

@ -78,6 +78,7 @@ class HidTransport(Transport):
for debug in HidTransport.enumerate(debug=True):
if debug.device['serial_number'] == self.device['serial_number']:
return debug
raise Exception('Debug HID device not found')
def open(self):
if self.hid: