From 337919a2d2e897ff6607918a0312fe51b2dae324 Mon Sep 17 00:00:00 2001 From: matejcik Date: Wed, 24 Jul 2019 17:55:06 +0200 Subject: [PATCH] python: fix debuglink problem with non-debug devices --- python/trezorlib/debuglink.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/trezorlib/debuglink.py b/python/trezorlib/debuglink.py index a7fb4897fa..f96bb24da2 100644 --- a/python/trezorlib/debuglink.py +++ b/python/trezorlib/debuglink.py @@ -196,6 +196,9 @@ class TrezorClientDebugLink(TrezorClient): try: debug_transport = transport.find_debug() self.debug = DebugLink(debug_transport, auto_interact) + # try to open debuglink, see if it works + self.debug.open() + self.debug.close() except Exception: if not auto_interact: self.debug = NullDebugLink()