From 52f96b3792f4e57f3946adba49bc07eda84344c9 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Mon, 4 Sep 2017 13:44:19 +0200 Subject: [PATCH] transport_hid: raise on missing debuglink --- trezorlib/transport_hid.py | 1 + 1 file changed, 1 insertion(+) diff --git a/trezorlib/transport_hid.py b/trezorlib/transport_hid.py index 17b745b860..fb1f514794 100644 --- a/trezorlib/transport_hid.py +++ b/trezorlib/transport_hid.py @@ -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: