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
1 changed files with 1 additions and 0 deletions

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: